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