PHP notice

Undefined variable: page_info

/data/wwwroot/mptz/protected/controllers/PageController.php(22)

10                 break;
11             case 2 :
12                 $page_info = Page::model ()->find ( 'column_id=:column_id', array (
13                         'column_id' => $this->column ['id'] 
14                 ) );
15                 break;
16             case 3 :
17                 $page_info = Page::model ()->find ( 'column_id=:column_id', array (
18                         'column_id' => $this->column ['datachild'] 
19                 ) );
20                 break;
21         }        
22         if ($page_info === null||empty($page_info))
23             throw new CHttpException(404,'信息不存在');        
24         $this->render ( 'index', array (
25                 'page_info' => $page_info 
26         ) );
27     }
28 }

Stack Trace

#7
+
 /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 16:12:59 nginx/1.2.6 Yii Framework/1.1.14