__construct() публичный Метод

Constructor
public __construct ( )
Пример #1
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('Category_model');
     $this->load->model('Product_model');
     $this->load->model('Option_model');
 }
Пример #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');
 }
Пример #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');
 }
Пример #4
0
 function __construct()
 {
     parent::__construct();
     force_ssl();
     $this->load->model(array('location_model'));
     $this->load->helper(array('form', 'url'));
 }
Пример #5
0
 function __construct()
 {
     parent::__construct();
     //        echo 'test';
     //make sure we're not always behind ssl
     remove_ssl();
 }
Пример #6
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('clients_model');
     $this->load->model('clients_pembiayaan_model');
     $this->load->library('pagination');
 }
Пример #7
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('front/book_m');
     $this->load->helper('file');
     $this->table = 'book_torrent';
 }
Пример #8
0
 function __construct()
 {
     parent::__construct();
     $this->load->model("role_model", "role");
     $this->load->model("privilege_model", "privilege");
     $this->load->library('form_validation');
 }
Пример #9
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('user_m');
     $this->load->model('topic_m');
     $this->load->model('comment_m');
 }
Пример #10
0
 public function __construct()
 {
     parent::__construct();
     // Load helpers.
     $this->load->helper('xml');
     $this->load->helper('text');
 }
Пример #11
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('news_model');
     $this->load->helper('news');
     $this->lang->load('news');
 }
Пример #12
0
 function __construct()
 {
     parent::__construct();
     force_ssl();
     $this->load->model(array('location_model'));
     $this->customer = $this->go_cart->customer();
 }
Пример #13
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('officer_model');
     $this->load->model('branch_model');
     $this->load->library('pagination');
 }
Пример #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');
 }
Пример #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');
 }
Пример #16
0
 public function __construct()
 {
     parent::__construct();
     log_message('debug', 'Users Controller Initialized');
     $this->load->model('users_model');
     $this->load->helper(array('cookie', 'form', 'date', 'html'));
 }
Пример #17
0
 function __construct()
 {
     parent::__construct();
     //make sure we're not always behind ssl
     remove_ssl();
     $this->load->model('Customer_model');
 }
Пример #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');
 }
Пример #19
0
 function __construct()
 {
     parent::__construct();
     $this->load->model("mysql_model", "mysql");
     $this->load->model('application_model', 'app');
     $this->load->model('servers_model', 'server');
 }
Пример #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');
 }
Пример #21
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('finance_week_model');
     $this->load->model('tsdaily_model');
     $this->load->model('branch_model');
 }
Пример #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');
 }
Пример #23
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('user_m');
     $this->load->helper('auth');
     is_login_exit();
 }
Пример #24
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('front/subtitle_m');
     $this->load->helper('file');
     $this->table = 'subtitle';
 }
Пример #25
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('accounting_model');
     $this->load->model('jurnal_model');
     $this->load->library('pagination');
 }
Пример #26
0
 function __construct()
 {
     parent::__construct();
     $this->load->library('pagination');
     $this->load->helper('text');
     $this->load->model('Trip_model');
 }
Пример #27
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('table');
     $this->data['siteOptions'] = $this->siteOptions;
     $this->data['siteContacts'] = $this->siteContacts;
 }
Пример #28
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('summary_model');
     $this->load->model('financial_stats_model');
     $this->load->model('overview/overview_model');
 }
Пример #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');
 }
Пример #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');
 }