예제 #1
0
 public function __construct()
 {
     parent::__construct();
     if ($this->user['role'] !== 'administrator') {
         $this->redirect('');
     }
 }
예제 #2
0
파일: Api.php 프로젝트: reneelung/voluntord
 public function __construct()
 {
     parent::__construct();
     $this->loadLibrary('json');
 }