function __construct() { error_reporting(E_ALL); ini_set('display_errors', 'On'); parent::__construct(); define('LAYOUT', 'layout_view'); Sesion::obtenerInstancia()->validarSesion(); }
public function __construct() { parent::__construct(); header("Content-Type: text/html; charset=utf-8"); $this->load->library("URI"); $this->load->library('Smarty_Wrapper', 'smarty'); $tmvc = tmvc::instance(); $tmvc->smarty = $this->smarty; $tmvc->smarty->assign('base_url', APP_BASE_URL); }
function __construct() { parent::__construct(); $this->load->library('helpers'); //Access security if (!$this->helpers->secure_session_start() or $_SESSION[user_level] != 5) { $home = $this->helpers->to('home'); Header("Location: {$home}"); exit; } }
function __construct() { parent::__construct(); $this->load->library('helpers'); //Acces security if (!$this->helpers->secure_session_start()) { $home = $this->helpers->to("home"); Header("Location:{$home}"); exit; } }
function __construct() { parent::__construct(); define('LAYOUT', 'layout_view'); Sesion::obtenerInstancia()->validarSesion(); }