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