public function actionExport()
 {
     if ($this->CanAccess('export')) {
         $model = new CompetitionCategorySchool();
         if (isset($_POST['CompetitionCategorySchool'])) {
             $model->attributes = $_POST['CompetitionCategorySchool'];
             $model->exportMentorsWithCodes($model->competition_id);
         } else {
             $this->render('export', array('model' => $model));
         }
     } else {
         throw new CHttpException(405, Yii::t('app', 'You do not have permissions to access this page.'));
     }
 }