PHP Error

Undefined variable: limit

/home/www/uznaykak.ru/protected/controllers/PostsController.php(369)

357             'catName' => $findByPk0,
358         ));
359     }
360 
361     public function actionViewEditorsBlog() {
362         $model = new Posts();
363         $criteria = new CDbCriteria;
364         $criteria->with = 'category';
365         $criteria->scopes = array('editors', 'visible');
366         $criteria->order = 'id_p desc';
367         $total = $model->count($criteria);
368         $pages = new CPagination($total);
369         $pages->pageSize = $limit;
370         $pages->applyLimit($criteria);
371         $result['pages'] = $pages;
372         $result['list'] = $model->findAll($criteria);
373 
374         $this->layout = '//layouts/newmain';
375         $this->render('index', array('list' => $result['list'], 'pages' => $result['pages']));
376     }
377 
378     public function actionTagsview($search) {
379 
380         $model = new Posts();
381         $criteria = new CDbCriteria;

Stack Trace

#12
+
 /home/www/uznaykak.ru/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();
2016-10-29 10:15:03 nginx/1.8.1 Yii Framework/1.1.8