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