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