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