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