iTell.kz - View Category
Корзина пуста купите что-нибудь
Copyright © 2017 iTell | Все права защищены.
PHP notice

PHP notice

Trying to get property of non-object

/var/www/vhosts/itell.kz/httpdocs/protected/controllers/frontend/CategoryController.php(74)

62         // $root_category = Category::model()->find($criteria);
63 
64         $root_category = Category::model()->findByAttributes(array(
65              'alias' => $alias,
66              'is_public' => Category::PUBLISHED
67             )
68         );
69 
70         if(!$root_category) {
71             $this->render('all', array('menu' => $cats));
72         }
73 
74         $title = $root_category->{$this->title};
75         $description = !empty($root_category->{$this->description})?
76             $root_category->{$this->description}:
77             "{$title} по самым выгодным ценам в Алматы";
78         $keywords = !empty($root_category->{$this->keywords})
79             ? $root_category->{$this->keywords}
80             : MetaHelper::generateKeywords($description);
81 
82         $this->pageTitle= $title;
83         $this->metaDescription = $description;
84         $this->metaKeywords = $keywords;
85 
86         //$root_category = Category::model()->findByPk($id, 'is_public = :is_public', array('is_public'=>Category::PUBLISHED));

Stack Trace

#6
+
 /var/www/vhosts/itell.kz/httpdocs/protected/modules/rights/components/RController.php(36): CFilter->filter(CFilterChain)
31     */
32     public function filterRights($filterChain)
33     {
34         $filter = new RightsFilter;
35         $filter->allowedActions = $this->allowedActions();
36         $filter->filter($filterChain);
37     }
38 
39     /**
40     * @return string the actions that are always allowed separated by commas.
41     */
#14
+
 /var/www/vhosts/itell.kz/httpdocs/protected/behaviors/WebApplicationEndBehavior.php(23): CApplication->run()
18         
19         // обрабатываем событие создания модуля
20         $this->onModuleCreate = array($this, 'changeModulePaths');
21         $this->onModuleCreate(new CEvent ($this->owner));
22         
23         $this->owner->run();        
24     }
25     
26     // обработчик события onModuleCreate
27     public function onModuleCreate($event)
28     {
#17
+
 /var/www/vhosts/itell.kz/httpdocs/index.php(15): CComponent->__call("runEnd", array("frontend"))
10     defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 
13 
14 require_once($yii);
15 Yii::createWebApplication($config)->runEnd('frontend');
2017-12-16 03:26:40 Apache Yii Framework/1.1.15