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