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