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