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