ArgumentCountError

Too few arguments to function YiiBase::t(), 1 passed in /home/andrezgamez/public_html/protected/views/site/productos.php on line 99 and at least 2 expected

/home/andrezgamez/framework/YiiBase.php(567)

555      * The first parameter can be a number without key.
556      * And in this case, the method will call {@link CChoiceFormat::format} to choose
557      * an appropriate message translation.
558      * Starting from version 1.1.6 you can pass parameter for {@link CChoiceFormat::format}
559      * or plural forms format without wrapping it with array.
560      * @param string $source which message source application component to use.
561      * Defaults to null, meaning using 'coreMessages' for messages belonging to
562      * the 'yii' category and using 'messages' for the rest messages.
563      * @param string $language the target language. If null (default), the {@link CApplication::getLanguage application language} will be used.
564      * @return string the translated message
565      * @see CMessageSource
566      */
567     public static function t($category,$message,$params=array(),$source=null,$language=null)
568     {
569         if(self::$_app!==null)
570         {
571             if($source===null)
572                 $source=($category==='yii'||$category==='zii')?'coreMessages':'messages';
573             if(($source=self::$_app->getComponent($source))!==null)
574                 $message=$source->translate($category,$message,$language);
575         }
576         if($params===array())
577             return $message;
578         if(!is_array($params))
579             $params=array($params);

Stack Trace

#0
+
 /home/andrezgamez/public_html/protected/views/site/productos.php(99): YiiBase::t("contra entrega del web site")
094                   <td class="productos_td_3"><img src="<?= $path_imagenes.'/productos_bullet.png' ?>" alt="Si" title="Si" /></td>
095                   <td class="productos_td_3"><img src="<?= $path_imagenes.'/productos_bullet.png' ?>" alt="Si" title="Si" /></td>
096                   <td class="productos_td_3"><img src="<?= $path_imagenes.'/productos_bullet.png' ?>" alt="Si" title="Si" /></td>
097                 </tr>
098                 <tr class="productos_tr">
099                   <td class="productos_td_2"><?= Yii::t('app','SEO básico') ?><span><?= Yii::t('contra entrega del web site') ?></span></td>
100                   <td class="productos_td_3"><img src="<?= $path_imagenes.'/productos_bullet.png' ?>" alt="Si" title="Si" /></td>
101                   <td class="productos_td_3"><img src="<?= $path_imagenes.'/productos_bullet.png' ?>" alt="Si" title="Si" /></td>
102                   <td class="productos_td_3"><img src="<?= $path_imagenes.'/productos_bullet.png' ?>" alt="Si" title="Si" /></td>
103                   <td class="productos_td_3"><img src="<?= $path_imagenes.'/productos_bullet.png' ?>" alt="Si" title="Si" /></td>
104                 </tr>
#5
+
 /home/andrezgamez/public_html/protected/controllers/SiteController.php(91): CController->render("productos", array("enviado" => false))
86         $this->render('portafolio', array('enviado'=>$this->mensaje_enviado));
87     }
88     
89     public function actionProductos()
90     {
91         $this->render('productos', array('enviado'=>$this->mensaje_enviado));
92     }     
93     
94         public function actionNosotros()
95     {
96         $this->render('nosotros', array('enviado'=>$this->mensaje_enviado));
#13
+
 /home/andrezgamez/public_html/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-29 00:00:51 Apache Yii Framework/1.1.9