public function actionIndex() { $this->pageTitle = 'Игры'; $model = new Games('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Games'])) { $model->attributes = $_GET['Games']; } $this->render('index', array('model' => $model)); }
/** * Manages all models. */ public function actionAdmin() { $model = new Games('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['Games'])) { $model->attributes = $_GET['Games']; } $this->render('admin', array('model' => $model)); }