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