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