PHP warning

Creating default object from empty value

/var/www/html/predmety/matematyka/protected/controllers/SiteController.php(203)

191         {
192             $this->layout='column2';
193             $this->render('index');
194         }
195     }
196     
197     public function actionStattya()
198     {
199         if(isset($_GET['id']))
200         {
201             $model = Statti::model()->findByPk($_GET['id']);
202             $menu = Menu::model()->findByPk($model->m_id);
203             $model->m_id = $_GET['id'];
204             $this->layout='column2';
205             $this->render('stattya',array("model"=>$model,"menu"=>$menu));
206         }
207         else
208         {
209             $this->layout='main';
210             $this->render('index');
211         }
212     }
213     
214     public function actionMainpage()
215     {

Stack Trace

#12
+
 /var/www/html/predmety/matematyka/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();
2024-03-19 08:25:54 Apache/2.4.10 (Debian) Yii Framework/1.1.13