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