PHP notice

Trying to get property 'name' of non-object

/home/danangtra/domains/danangtravelmart.com.vn/public_html/protected/controllers/HomeController.php(375)

363         $this->render("thuexe", array(
364             "arrPro" => $arrPro,
365             'item_count'=>$countItem,
366             'page_size'=>8,
367             'pages'=>$pages,            
368         ));
369     }
370     public function actionTourDetail($id=null,$alias = null)
371     {        
372         $cri = new CDBCriteria;        
373         $cri->addCondition("id = {$id}");
374         $pro = Tours::model()->find($cri);
375         $this->ten= $pro->name;        
376         $this->noidung= $pro->description;
377         $this->hinhanh= $pro->image;
378         if($pro == null)
379             throw new CHttpException('404','Trang bạn yêu cầu không tìm thấy.');
380             
381         if(!empty($this->arrSystem))
382             $this->pageTitle = $pro->name.' - '.$this->arrSystem->title;
383             
384         $cri = new CDBCriteria;
385         $cri->addCondition("id !=".$id ." and category_tour_id =".$pro->category_tour_id);
386         $other_tour = Tours::model()->findAll($cri);
387         $criteria = new CDbCriteria;

Stack Trace

#9
+
 /home/danangtra/domains/danangtravelmart.com.vn/public_html/index.php(12): CApplication->run()
07 defined('YII_DEBUG') or define('YII_DEBUG',true);
08 // specify how many levels of call stack should be shown in each log message
09 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
10 
11 require_once($yii);
12 Yii::createWebApplication($config)->run();
13 
2024-03-19 12:19:58 Apache/2 Yii Framework/1.1.14