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