PHP Error

Trying to get property of non-object

/home/trungdq/domains/trungdiep.com/public_html/protected/controllers/SiteController.php(613)

601             ));
602         }
603     }
604 
605     /*
606     * LIỆT KÊ SẢN PHẨM THEO THƯƠNG HIỆU
607     */
608     public function actionListProductByBrand($id, $name)
609     {
610         $arr_type = array();
611         $conf = Configure::getConfigure();
612         $brand = Brand::model()->findByPk($id);
613         $this->cat_id = $brand->cat_id;
614 
615         //navigation_bar
616         if (!empty($brand->cat)) {
617             $cat = $brand->cat;
618             $this->navigation_bar = $this->navigation_bar . '<i class="fa fa-angle-double-right"></i>' . CHtml::link($cat->name, Yii::app()->urlManager->createUrl('site/ListProduct', array('id' => $cat->id, 'name' => $cat->url)));
619         }
620         $this->navigation_bar = $this->navigation_bar . '<i class="fa fa-angle-double-right"></i>' . CHtml::link($brand->name, Yii::app()->urlManager->createUrl('site/ListProductByBrand', array('id' => $brand->id, 'name' => $brand->url)));
621         //navigation_bar
622         
623         $criteria = new CDbCriteria();
624 
625         if (!empty($_GET['filter'])) {

Stack Trace

#9
+
 /home/trungdq/domains/trungdiep.com/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 03:12:19 Apache/2 Yii Framework/1.1.7