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