PHP notice

Trying to get property of non-object

/data/wwwroot/mptz/protected/controllers/ArticleController.php(35)

23         $pages->applyLimit ( $criteria );
24         $article_infos = Article::model ()->findAll ( $criteria );
25         $this->render ( 'index', array (
26                 'article_infos' => $article_infos,
27                 'pages' => $pages 
28         ) );
29     }
30     public function actionView($id) {
31         if (empty ( $id )) {
32             throw new CHttpException ( 404, '信息不存在' );
33         }
34         $article_info = Article::model ()->findByPk ( ( int ) $id );
35         $this->column = $this->menu [$article_info->column_id];
36         $this->render ( 'view', array (
37                 'article_info' => $article_info 
38         ) );
39     }
40 }

Stack Trace

#9
+
 /data/wwwroot/mptz/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 07:52:37 nginx/1.2.6 Yii Framework/1.1.14