function __construct() { parent::__construct(); $this->User = new mUser(); if (!$this->User->authenticated() && $this->uri->segment(2) != 'login') { redirect('/site-admin/login/'); } }
function __construct() { parent::__construct(); $this->load->library('session'); $this->basket =& $_SESSION['basket']; if (!is_array($this->basket)) { $this->basket = array(); } }
function __construct() { parent::__construct(); $API = new stripelib(); $this->order = mOrder::get_instance(); }
function __construct() { parent::__construct(); $this->load->helper('blog'); }