CException

Не визначена властивість "FirmcategoryController.headerTitle".

/home/passport/ngod.com.ua/www/protected/controllers/FirmcategoryController.php(16)

04 {
05     public $metaTitle;
06     public $metaDescription;
07    public $metaKeywords;
08     public $settings;
09 
10     /**
11      * This is the default 'index' action that is invoked
12      * when an action is not explicitly requested by users.
13      */
14     public function actionIndex($url)
15     {
16         $this->headerTitle = '<strong>'.Yii::t('app','Новогодние').'</strong><br>'.Yii::t('app','подарки оптом');
17       
18       $model = Category::model()->findByAttributes(array('url'=>$url, 'firm'=>1, 'status'=>1));
19         $this->settings = Settings::model()->findByPk(1);
20         if($model===null)
21          throw new CHttpException(404,  Yii::t('app','Категории не существует'));
22 
23         if($model->metaTitle){$this->metaTitle = $model->metaTitle;}
24         else {$this->metaTitle = $model->name;}
25 
26       $this->metaDescription = $model->metaDescription;
27       $this->metaKeywords = $model->metaKeywords;
28 

Stack Trace

#0
+
 /home/passport/ngod.com.ua/www/protected/controllers/FirmcategoryController.php(16): CComponent->__set("headerTitle", "<strong>Новорічні</strong><br>подарунки опт...")
11      * This is the default 'index' action that is invoked
12      * when an action is not explicitly requested by users.
13      */
14     public function actionIndex($url)
15     {
16         $this->headerTitle = '<strong>'.Yii::t('app','Новогодние').'</strong><br>'.Yii::t('app','подарки оптом');
17       
18       $model = Category::model()->findByAttributes(array('url'=>$url, 'firm'=>1, 'status'=>1));
19         $this->settings = Settings::model()->findByPk(1);
20         if($model===null)
21          throw new CHttpException(404,  Yii::t('app','Категории не существует'));
#10
+
 /home/passport/ngod.com.ua/www/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 date_default_timezone_set('Europe/Kiev');
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-29 02:18:26 Apache Yii Framework/1.1.16