Inheritance: extends think\Controller
コード例 #1
0
 public function _initialize()
 {
     parent::_initialize();
     if (!checkAdmin(3)) {
         $this->error('请先登陆管理员账号!');
     }
 }
コード例 #2
0
 public function _initialize()
 {
     parent::_initialize();
     if (!$this->isTeacher()) {
         $this->echoError('请先登陆管理员账号!');
     }
 }
コード例 #3
0
 public function _initialize()
 {
     parent::_initialize();
     $this->preExamQuestion();
     $this->initExamQuestionCount();
     $this->initExamUserScore();
     $this->addExamBaseInfo();
 }
コード例 #4
0
 public function _initialize()
 {
     parent::_initialize();
 }
コード例 #5
0
 public function _initialize()
 {
     $this->isNeedLogin = true;
     parent::_initialize();
     $this->initPrivilegeType();
 }
コード例 #6
0
 public function _initialize()
 {
     $this->isNeedLogin = true;
     parent::_initialize();
 }