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