PHP warning

Creating default object from empty value

/data/sites/web/aandeplascom/www/admin/protected/controllers/RegistrationController.php(69)

57         $command = $connection -> createCommand("SELECT cg.description, concat(startdate,' tot ',enddate) datarange, periodid, c.campid
58         FROM tblcampperiod cp
59         JOIN tblcamp c ON c.campid = cp.campid
60         JOIN tblcategory cg ON cg.categoryid = c.categoryid
61         and cp.periodid=:pid");
62         $command -> bindParam(":pid", $model -> chosenrangeid, PDO::PARAM_STR);
63         $dataReader = $command -> query();
64         $rows = $dataReader -> readAll();
65         $model -> chosenrange = $rows[0]['datarange'];
66         $model -> category = $rows[0]['description'];
67         $session['step']= = 2; */
68 
69         $model->camp         = Camp::Model()->with("dateranges")->find("dateranges.periodid=" . $id);
70         $model->campperiodid = $id;
71         $model->setScenario('step1');
72         $session['model'] = serialize($model);
73         $this->redirect(array('registration/two'));
74     }
75 
76     //personal information form
77     public function actionTwo()
78     {
79         if (isset($_POST['return'])) {
80             $this->redirect(array('registration/  '));
81         }

Stack Trace

#14
+
 /data/sites/web/aandeplascom/www/admin/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();
14 
2024-03-28 14:06:33 Apache Yii Framework/1.1.13