/** * Manages all models. */ public function actionAdmin() { if ($this->CanAccess("admin")) { $model = new CompetitionCategorySchoolMentor('search'); $model->unsetAttributes(); // clear any default values if (isset($_GET['CompetitionCategorySchoolMentor'])) { $model->attributes = $_GET['CompetitionCategorySchoolMentor']; } $this->render('admin', array('model' => $model)); } else { throw new CHttpException(405, Yii::t('app', 'You do not have permissions to access this page.')); } }