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