PHP warning

PHP warning

Creating default object from empty value

/home/wwwroot/dsjyzd/dsjyzd/protected/controllers/EmployerController.php(64)

52         $this->smarty->assign('bookingPublish',$bookingPublish);
53         $this->smarty->display('employer/recruit-place.html');
54     }
55 
56     //生源概览具体内容
57     public function actionStudentsDetail($id) {
58         $sourceOverview = SourceOverview::model()->findByPk($id);
59         $this->smarty->assign('title', $sourceOverview->title);
60         $this->smarty->assign('content', $sourceOverview->content);
61         $this->smarty->assign('clicks', $sourceOverview->clicks);
62         $this->smarty->assign('date', $sourceOverview->date);
63         $this->smarty->display('employer/studentsDetail.html');
64         $sourceOverview->clicks ++;
65         $sourceOverview->save();
66     }
67 
68     //宣讲预定、信息发布具体内容
69     public function actionBookingPublish($type) {
70         $bookingPublish = FlowChart::model()->find(array(
71                 'condition'=>'type = :type',
72                 'params'=>array(':type'=>$type),
73         ));
74         $typeName = FlowChartService::getInstance()->getTypeName($type);
75         $this->smarty->assign('typeName',$typeName);
76         $this->smarty->assign('type',$type);

Stack Trace

#9
+
 /home/wwwroot/dsjyzd/dsjyzd/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();
2017-11-20 03:27:59 nginx/1.10.0 Yii Framework/1.1.14