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