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