PHP notice

Undefined variable: model

/home/ya-1993042/ya-maika.su/docs/protected/controllers/KatalogsController.php(218)

206 
207     /**
208      * Lists all models.
209      */
210     public function actionIndex()
211     {
212         /*$dataProvider=new CActiveDataProvider('Katalogs');
213         $this->render('index',array(
214             'dataProvider'=>$dataProvider,
215         ));*/
216              $this->layout='//layouts/column1';
217             
218              $this->menutype = $model->pagescount;
219 
220              if ($this->menutype==1)
221              {
222                  if ($model->parent_id==0) $this->menustype = $model->url;
223                  else $this->menustype = $model->parent->url;
224              }
225               Yii::app()->clientScript->registerMetaTag('Каталоги ', 'keywords');
226              Yii::app()->clientScript->registerMetaTag(' Каталоги | Рекламное агентство Я!майка ', 'description');
227                $this->pageTitle = 'Каталоги | Я!майка';
228 
229                $model=Katalogs::model()->findAll('parent_id = 0');
230 

Stack Trace

#12
+
 /home/ya-1993042/ya-maika.su/docs/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 10:17:46 Apache/2.4.56 (Red Hat Enterprise Linux 8) PHP/5.3.29 Yii Framework/1.1.10