public function actionAdmin() { $model = new Community('search'); $model->unsetAttributes(); if (isset($_GET['Community'])) { $model->setAttributes($_GET['Community']); } $this->render('admin', array('model' => $model)); }