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