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