PHP Error

Description

Trying to get property of non-object

Source File

/home/thongtinnv/public_html/protected/controllers/SiteController.php(191)

00179:         $this->pageKeyworld = $model->keyworld;
00180:         $this->render('pages/detail_dmc', array(
00181:                 'models'=>$models,
00182:                 'model'=>$model,
00183:                 'pages' => $pages,
00184:                 'sort' => $sort,
00185:         ));
00186:     }
00187:     
00188: public function actionDetail_news($id, $name)
00189:     {
00190:         $model = News::model()->findByPk($id);
00191: $this->pageTitle = $model->title;
00192: 00193: $this->pageDescription = $model->chacon->description; 00194: $this->pageKeyworld = $model->chacon->keyworld; 00195: 00196: $this->render('pages/detail_news', array('model'=>$model)); 00197: } 00198: 00199: public function actionRegister() 00200: { 00201: $model= new Register; 00202: 00203: // Uncomment the following line if AJAX validation is needed

Stack Trace

#0 unknown(0): SiteController->actionDetail_news()
#1 /home/thongtinnv/public_html/framework/web/actions/CInlineAction.php(47): ReflectionMethod->invokeArgs()
#2 /home/thongtinnv/public_html/framework/web/CController.php(300): CInlineAction->run()
#3 /home/thongtinnv/public_html/framework/web/CController.php(278): SiteController->runAction()
#4 /home/thongtinnv/public_html/framework/web/CController.php(257): SiteController->runActionWithFilters()
#5 /home/thongtinnv/public_html/framework/web/CWebApplication.php(324): SiteController->run()
#6 /home/thongtinnv/public_html/framework/web/CWebApplication.php(121): CWebApplication->runController()
#7 /home/thongtinnv/public_html/framework/base/CApplication.php(135): CWebApplication->processRequest()
#8 /home/thongtinnv/public_html/index.php(13): CWebApplication->run()
2024-03-29 20:59:28 LiteSpeed Yii Framework/1.1.5-dev