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