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