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