public function __construct() { parent::__construct(); $this->config->set_item(array('view', 'wrap'), true); $this->config->set_item(array('view', 'header'), 'main/common/header.php'); $this->config->set_item(array('view', 'footer'), 'main/common/footer.php'); $this->_init(); }
public function __construct() { parent::__construct(); if (Auth::petugas() == null) { header("Location: " . base . "/Auth"); } else { $this->petugas = Auth::petugas(); } }
public function __construct($login = true) { parent::__construct(); $this->config->set_item(array('view', 'wrap'), true); $this->config->set_item(array('view', 'header'), 'main/common/header.php'); $this->config->set_item(array('view', 'footer'), 'main/common/footer.php'); $this->_init(); if ($login) { $this->_check_login(); } if (UserSession::get('user')) { $this->_display->attach('notifications', (new Notify())->get_all(UserSession::get('user._id'))); } }
public function __construct() { parent::__construct(); }
function __construct() { parent::__construct(); $this->petugas = Auth::petugas(); }
function __construct() { parent::__construct(); $this->categories = Category::all(); }
function __construct() { parent::__construct(); $this->view->render('error/404'); }
public function __construct() { parent::__construct(); $this->output->contentType('text', 'UTF-8'); }