Example #1
0
 /**
  * Every time this controller is called should:
  */
 public function __construct()
 {
     parent::__construct();
     $this->lang->load("home");
     $this->config->load("tdesign");
     $this->load->helper(array("currency", "tdesign"));
 }
Example #2
0
    public function  __construct()
    {
        parent::__construct();
        
        $this->load->model('shop_cat_m');
        $this->load->model('shop_items_m');
        $this->load->model('cart_m');
        $this->load->model('galleries/galleries_m');
        $this->load->model('galleries/gallery_images_m');
        $this->lang->load('shop'); 
        $this->load->library('cart');
        $this->load->library('form_validation');

        $this->cart_validation_rules = array(
            array(
                'field' => 'qty[]',
                'label' => 'lang:shop.qty_label',
                'rules' => 'trim|required|numeric'
            ),
            array(
                'field' => 'rowid[]',
                'label' => 'hidden',
                'rules' => 'required'
            )
        );

        $this->add_to_cart_rules = array(
            array(
                'field' => 'item_options[]',
                'label' => 'lang:shop.item_options_label',
                'rules' => 'trim'
            )
        );
    }
Example #3
0
 function __construct()
 {
     parent::__construct();
     $this->folder = "admin/";
     $this->module = $this->folder . "error/";
     $this->http_ref = base_url() . $this->module;
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('newsletters_m');
     $this->load->model('subscribers_m');
     $this->lang->load('newsletter');
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Gallery_model');
     $this->load->helper(['url', 'html', 'form']);
     $this->load->library(['form_validation', 'session']);
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Post');
     $this->load->model('Category');
     $this->load->model('Tag');
 }
Example #7
0
 function __construct()
 {
     parent::__construct();
     $this->load->model(array('m_profiles', 'm_posts', 'm_projects', 'm_blogs', 'm_reviews', 'm_videos', 'm_accounts', 'm_comments', 'm_threads', 'm_banners', 'm_stats'));
     $this->load->helper(array('pretty_date'));
     $this->load->vars(array('active' => 'home'));
 }
Example #8
0
 /**
  * The constructor
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->data = new stdClass();
     $this->lang->load('testimonials');
     $this->load->driver('Streams');
 }
Example #9
0
 function __construct()
 {
     parent::__construct();
     $this->load->library('ion_auth');
     $this->load->library('postal');
     $this->load->helper('url');
 }
Example #10
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('home_model');
     $this->load->library('pagination');
     $this->load->library('facebook');
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->library('facebook');
     $this->load->library('gr_auth', IMS_DB_PREFIX . 'customer');
     $this->load->model(['user_home_model', 'event_public/event_public_model', 'rating/rating_model']);
 }
Example #12
0
 function __construct()
 {
     parent::__construct();
     $this->load->library("go_cart");
     $this->load->helper('currency');
     $this->lang->load(array("cart"));
     $this->load->model(array("location_model"));
     /*make sure the cart isnt empty*/
     if ($this->go_cart->total_items() == 0) {
         redirect('home');
     }
     /*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');
         }
     }
     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');
 }
Example #13
0
 public function __construct()
 {
     parent::__construct();
     $this->config->load('files/files');
     $this->load->library('files/files');
     $this->_path = FCPATH . rtrim($this->config->item('files:path'), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
 }
Example #14
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper(array('form', 'url'));
     $this->load->library('form_validation');
     //$this->load->library('security');
 }
Example #15
0
 public function __construct()
 {
     parent::__construct();
     $this->lang->load('portfolio');
     $this->load->model('portfolio/portfolio_m');
     $this->template->append_css('module::portfolio.css')->append_js('module::jquery.quicksand.js')->append_js('module::portfolio.js');
 }
Example #16
0
	function __construct() {
		parent::__construct();
		$this->load->library('pagination');
		$this->load->library('template');
		$this->load->helper('reader');
		$this->template->set_layout('reader');
	}
Example #17
0
 function __construct()
 {
     parent::__construct();
     $this->folder = "";
     $this->module = $this->folder;
     $this->page_active = "stats";
     $this->http_ref = base_url() . $this->module;
     $this->load->model("general_model");
     $this->model = new general_model("wa_data");
     $this->model_view = new general_model("v_wa_data");
     $this->model_contact = new general_model("wa_contact");
     $this->model_hukum_adat = new general_model("wa_hukum_adat");
     $this->model_hayati = new general_model("wa_hayati");
     $this->model_hak_atas_tanah = new general_model("wa_hak_atas_tanah");
     $this->model_sejarah = new general_model("wa_sejarah");
     $this->model_lembaga_adat = new general_model("wa_lembaga_adat");
     $this->model_potensi_hayati = new general_model("wa_potensi_hayati");
     //$this->load->model('ion_auth_model')
     $this->load->libraries(array('ion_auth', 'form_validation', 'utils'));
     $this->load->helpers(array('form', 'url', 'lookup', 'language'));
     $this->lang->load('auth');
     $this->user = (array) $this->ion_auth->user()->row();
     $this->tbl_idx = "idx";
     $this->admin_layout = "layout/main_layout";
 }
Example #18
0
 public function __construct()
 {
     parent::__construct();
     //Load lang
     $this->lang->load('galleries/galleries');
     $this->load->model('galleries/galleries_m');
 }
Example #19
0
 function __construct()
 {
     if (login_data('nursery') == "") {
         redirect('home');
     }
     parent::__construct();
 }
 function __construct()
 {
     parent::__construct();
     if (!$this->secure->get_user_session()->id) {
         redirect(site_url('/users/login'));
     }
 }
Example #21
0
 /**
  * The constructor
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('pages_m');
     $this->load->model('page_chunks_m');
     $this->config->load('home');
     $this->_sliderPath = $this->config->item('upload_slider_image_path');
 }
Example #22
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('facebook');
     $this->load->model(['centre_public/centre_public_model', 'event_public/event_public_model', 'rating/rating_model']);
     $this->load->model('search_model');
     $this->load->library('pagination');
 }
Example #23
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('blog_m');
     $this->load->helper('xml');
     $this->load->helper('date');
     $this->lang->load('blog');
 }
Example #24
0
 public function __construct()
 {
     parent::__construct();
     // Load the required classes
     $this->load->model('sample_m');
     $this->lang->load('sample');
     $this->template->append_metadata(css('sample.css', 'sample'))->append_metadata(js('sample.js', 'sample'));
 }
Example #25
0
 function __construct()
 {
     parent::__construct();
     $this->title = $this->title . ' - Contests';
     $this->load->model(array('m_contests', 'm_accounts', 'm_projects', 'm_submissions', 'm_votes'));
     $this->load->helper(array('pretty_date', 'pretty_url'));
     $this->load->vars(array('active' => $this->active, 'page_css' => array('contents')));
 }
Example #26
0
 /**
  * The constructor
  * @access public
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->data = new stdClass();
     $this->lang->load('faq');
     $this->load->driver('Streams');
     $this->template->append_css('module::faq.css');
 }
Example #27
0
 /**
  * Constructor method
  * 
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     // Load the required classes
     $this->load->library('form_validation');
     $this->load->model('comments_m');
     $this->lang->load('comments');
 }
Example #28
0
 public function __construct()
 {
     parent::__construct();
     // Turn off the OP for these assets.
     $this->output->enable_profiler(false);
     $this->load->library('streams_core/Type');
     $this->load->helper('file');
 }
Example #29
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     // load the users model
     $this->load->model('users_model');
     // load the users language file
     $this->lang->load('users');
 }
Example #30
0
 function __construct()
 {
     parent::__construct();
     if (!is_login()) {
         set_notify('error', 'กรุณาเข้าสู่ระบบก่อนเข้าใช้งานในส่วนนี้ค่ะ');
         redirect('home');
     }
 }