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