__construct() public method

Constructor
public __construct ( )
Esempio n. 1
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('Category_model');
     $this->load->model('Product_model');
     $this->load->model('Option_model');
 }
Esempio n. 2
0
 function __construct()
 {
     parent::__construct();
     /*make sure the cart isnt empty*/
     if ($this->jcart->total_items() == 0) {
         redirect('cart/view_cart');
     }
     /*is the user required to be logged in?*/
     if (config_item('require_login')) {
         $this->Customer_model->is_logged_in('checkout');
     }
     if (!config_item('allow_os_purchase') && config_item('inventory_enabled')) {
         /*double check the inventory of each item before proceeding to checkout*/
         $inventory_check = $this->jcart->check_inventory();
         if ($inventory_check) {
             /*
             OOPS we have an error. someone else has gotten the scoop on our customer and bought products out from under them!
             we need to redirect them to the view cart page and let them know that the inventory is no longer there.
             */
             $this->session->set_flashdata('error', $inventory_check);
             redirect('cart/view_cart');
         }
     }
     /* Set no caching
     	
     		header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
     		header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); 
     		header("Cache-Control: no-store, no-cache, must-revalidate"); 
     		header("Cache-Control: post-check=0, pre-check=0", false);
     		header("Pragma: no-cache");
     	
     		*/
     $this->load->library('form_validation');
 }
Esempio n. 3
0
 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->library('form_validation');
     $this->lang->load('faq');
     Assets::add_module_js('faq', 'faq.js');
 }
Esempio n. 4
0
 function __construct()
 {
     parent::__construct();
     force_ssl();
     $this->load->model(array('location_model'));
     $this->load->helper(array('form', 'url'));
 }
Esempio n. 5
0
 function __construct()
 {
     parent::__construct();
     //        echo 'test';
     //make sure we're not always behind ssl
     remove_ssl();
 }
Esempio n. 6
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('clients_model');
     $this->load->model('clients_pembiayaan_model');
     $this->load->library('pagination');
 }
Esempio n. 7
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('front/book_m');
     $this->load->helper('file');
     $this->table = 'book_torrent';
 }
Esempio n. 8
0
 function __construct()
 {
     parent::__construct();
     $this->load->model("role_model", "role");
     $this->load->model("privilege_model", "privilege");
     $this->load->library('form_validation');
 }
Esempio n. 9
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('user_m');
     $this->load->model('topic_m');
     $this->load->model('comment_m');
 }
Esempio n. 10
0
 public function __construct()
 {
     parent::__construct();
     // Load helpers.
     $this->load->helper('xml');
     $this->load->helper('text');
 }
Esempio n. 11
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('news_model');
     $this->load->helper('news');
     $this->lang->load('news');
 }
Esempio n. 12
0
 function __construct()
 {
     parent::__construct();
     force_ssl();
     $this->load->model(array('location_model'));
     $this->customer = $this->go_cart->customer();
 }
Esempio n. 13
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('officer_model');
     $this->load->model('branch_model');
     $this->load->library('pagination');
 }
Esempio n. 14
0
 function __construct()
 {
     parent::__construct();
     force_ssl();
     /* make sure the cart isnt empty */
     if ($this->go_cart->total_items() == 0) {
         redirect('cart/view_cart');
     }
     /* is the user required to be logged in? */
     if (config_item('require_login')) {
         $this->Customer_model->is_logged_in('checkout');
     }
     if (!config_item('allow_os_purchase') && config_item('inventory_enabled')) {
         /* double check the inventory of each item before proceeding to checkout */
         $inventory_check = $this->go_cart->check_inventory();
         if ($inventory_check) {
             /*
              OOPS we have an error. someone else has gotten the scoop on our customer and bought products out from under them!
              we need to redirect them to the view cart page and let them know that the inventory is no longer there.
             */
             $this->session->set_flashdata('error', $inventory_check);
             redirect('cart/view_cart');
         }
     }
     $this->load->library('form_validation');
 }
Esempio n. 15
0
 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('botanicules/botanicules_model');
     $this->lang->load('botanicules');
     Assets::add_module_js('botanicules', 'botanicules.js');
 }
Esempio n. 16
0
File: users.php Progetto: 68kb/68kb
 public function __construct()
 {
     parent::__construct();
     log_message('debug', 'Users Controller Initialized');
     $this->load->model('users_model');
     $this->load->helper(array('cookie', 'form', 'date', 'html'));
 }
Esempio n. 17
0
 function __construct()
 {
     parent::__construct();
     //make sure we're not always behind ssl
     remove_ssl();
     $this->load->model('Customer_model');
 }
Esempio n. 18
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('servers_redis_model', 'servers');
     $this->load->model('servers_os_model', 'servers_os');
     $this->load->library('form_validation');
 }
Esempio n. 19
0
 function __construct()
 {
     parent::__construct();
     $this->load->model("mysql_model", "mysql");
     $this->load->model('application_model', 'app');
     $this->load->model('servers_model', 'server');
 }
Esempio n. 20
0
 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('botan_structure/botan_structure_model');
     $this->lang->load('botan_structure');
     Assets::add_module_js('botan_structure', 'botan_structure.js');
 }
Esempio n. 21
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('finance_week_model');
     $this->load->model('tsdaily_model');
     $this->load->model('branch_model');
 }
Esempio n. 22
0
 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('comments/comments_model');
     $this->lang->load('comments');
     Assets::add_module_js('comments', 'comments.js');
 }
Esempio n. 23
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('user_m');
     $this->load->helper('auth');
     is_login_exit();
 }
Esempio n. 24
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('front/subtitle_m');
     $this->load->helper('file');
     $this->table = 'subtitle';
 }
Esempio n. 25
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('accounting_model');
     $this->load->model('jurnal_model');
     $this->load->library('pagination');
 }
Esempio n. 26
0
 function __construct()
 {
     parent::__construct();
     $this->load->library('pagination');
     $this->load->helper('text');
     $this->load->model('Trip_model');
 }
Esempio n. 27
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('table');
     $this->data['siteOptions'] = $this->siteOptions;
     $this->data['siteContacts'] = $this->siteContacts;
 }
Esempio n. 28
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('summary_model');
     $this->load->model('financial_stats_model');
     $this->load->model('overview/overview_model');
 }
Esempio n. 29
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('news_model');
     $this->lang->load('news');
     $this->_settings = $this->settings_model->select('name,value')->find_all_by('module', 'news');
 }
Esempio n. 30
0
 function __construct()
 {
     parent::__construct();
     ini_set("include_path", "D:/wwwroot/mysqlmtop/frontweb/public");
     $this->load->model("mysql_model", "mysql");
     $this->load->model('application_model', 'app');
     $this->load->model('servers_model', 'server');
 }