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