乐虎国际娱乐_乐虎国际官网

PHP notice

Trying to get property of non-object

/var/www/html/jg/gcjsgs/protected/controllers/ListController.php(77)

65             $lm = Structure::model()->findByPk($lid);
66         } elseif (!empty($_GET['alias'])) {
67             $alias = trim($_GET['alias']);
68             $lm = Structure::model()->find("alias='{$alias}'");
69             $lid = $lm['id'];
70         } else {
71             throw new CHttpException(401, '合法进入。');
72         }
73 
74 
75 
76         //判别栏目能否需求验证
77         if ($lm->onlymember) {
78             //假如该栏目只能是会员阅读,则启动验证机制
79             if (Yii::app()->user->isGuest) {
80                 $this->redirect(array("site/login"));
81             }
82         }
83 
84         $this->current = $lm; //以后栏目标信息  
85         //
86         //途径信息
87         //
88         $this->breadcrumbs = $this->genPosition($this->current->id);
89         //栏目父栏目信息

Stack Trace

#10
+
 /var/www/html/jg/gcjsgs/index.php(14): CApplication->run()
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 
14 Yii::createWebApplication($config)->run();
2019-11-14 00:31:49 Apache/2.2.15 (CentOS) Yii Framework/1.1.11