__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
파일: faq.php 프로젝트: fbmfbm/drhil01
 /**
  * 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
파일: book.php 프로젝트: NingerJohn/vfinder
 function __construct()
 {
     parent::__construct();
     $this->load->model('front/book_m');
     $this->load->helper('file');
     $this->table = 'book_torrent';
 }
예제 #8
0
파일: role.php 프로젝트: hisery/Lepus-1
 function __construct()
 {
     parent::__construct();
     $this->load->model("role_model", "role");
     $this->load->model("privilege_model", "privilege");
     $this->load->library('form_validation');
 }
예제 #9
0
파일: member.php 프로젝트: phpox/LetsBBS
 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
파일: officer.php 프로젝트: ibnoe/core-mis
 public function __construct()
 {
     parent::__construct();
     $this->load->model('officer_model');
     $this->load->model('branch_model');
     $this->load->library('pagination');
 }
예제 #14
0
파일: checkout.php 프로젝트: devarj/design
 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
파일: users.php 프로젝트: 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'));
 }
예제 #17
0
파일: cart.php 프로젝트: FAVHYAN/a3workout
 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
파일: settings.php 프로젝트: phpox/LetsBBS
 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
파일: Stats.php 프로젝트: blrik/bWorld
 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
파일: grapha.php 프로젝트: chen-123/phper
 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');
 }