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