PHP warning

Creating default object from empty value

/www/wwwroot/ebiao.com/protected/controllers/BrandController.php(210)

198         $share_brands = ShareBrand::model()->with('brand')->findAll($criteria);
199         //$this->pageTitle = $share->title ? $share->title : $user->share_title;
200         $this->pageTitle = "商标分享";
201         $this->layout = 'blank';
202         $this->render('share', array('share'=>$share, 'user'=>$user, 'share_count'=>$share_count, 'share_brands'=>$share_brands));
203     }
204     /*
205      * 分享内容页
206      */
207     public function actionShareDetail(){
208         $share = Share::model()->findByPk(intval($_GET['shareid']));
209         $sharebrand = ShareBrand::model()->findByPk(intval($_GET['brandid']));
210         $sharebrand->viewcount++;
211         $sharebrand->save();
212         $user = User::model()->findByPk($share->userid);
213         $this->pageTitle = $share->title;
214         $this->layout = 'blank';
215         $this->render('sharedetail', array('share'=>$share, 'user'=>$user, 'sharebrand'=>$sharebrand));
216     }
217 
218     /*
219      * www.sbtm.com首页
220      */
221     public function actionBrandIndex(){
222         $this->pageTitle = "商标特卖网";

Stack Trace

#7
+
 /www/wwwroot/ebiao.com/public/index.php(23): CApplication->run()
18 require_once($yii);
19 require_once($short);
20 
21 $app = Yii::createWebApplication($config);
22 mb_internal_encoding(app()->charset);
23 $app->run();
2024-03-28 21:10:20 nginx/1.16.0 Yii Framework/1.1.17