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