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