public function actionIndex() { $this->layout = '//layouts/admin'; $this->pageTitle = 'Справочники'; $this->breadcrumbs = array('Справочники'); $model = new Lists('search'); $model->unsetAttributes(); if (isset($_GET['Lists'])) { $model->attributes = $_GET['Lists']; } $this->render('index', array('model' => $model)); }
/** * Manages all models. */ public function actionAdmin() { $model = new Lists('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Lists'])) { $model->attributes = $_GET['Lists']; } $this->render('admin', array('model' => $model)); }