万博手机官网登录网页版_手机万博官网最新版本_手机万博版登录

Trying to get property 'cid' of non-object

/data/wwwroot/wwwhzqingcang/application/controllers/ArticleController.php(69)

57         else
58         {
59             $this->redirect('?s='.s());
60         }
61     }
62     
63     public function actionDetail()
64     {
65         // show detail page.
66         if(!empty($_GET['id']))
67         {
68             $article = Article::model()->findByPk($_GET['id']);
69             $category = getCgDataByCid($article->cid);
70             $tmpl_detail = ($category->tmpl_detail=='')?'article_detail':$category->tmpl_detail;
71             if(!empty($article->goto))
72             {
73                 header('Location: '.$article->goto);
74                 exit;
75             }
76             $pushData['article'] = $article;
77             $this->render(tpl($tmpl_detail), $pushData);
78         }
79         else
80         {
81             $this->redirect('?s='.s());

Stack Trace

#7
+
 /data/wwwroot/wwwhzqingcang/index.php(49): CApplication->run()
44     $dp ->close();
45 }catch(Exception $e){
46     echo 'error';
47 }
48 
49 Yii::createWebApplication($config)->run();
50 
51 /**
52  * By CINEASE
53  *----------------------------*/
2020-09-16 16:56:00 nginx/1.16.1 Yii Framework/1.1.13