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