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