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