Example #1
0
 public function __construct()
 {
     parent::__construct();
     if ($this->user['role'] !== 'administrator') {
         $this->redirect('');
     }
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->loadLibrary('json');
 }