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