示例#1
0
 public function __construct()
 {
     parent::__construct();
     //  calls the constructor
     $this->load->model('Pages_model');
     $this->lang->load('account/login_register');
 }
示例#2
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('customer');
     $this->load->model('Orders_model');
     $this->load->model('Paypal_model');
 }
示例#3
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('form');
     $this->load->library('form_validation');
     $this->load->model('Utilisateur_model');
 }
示例#4
0
 public function __construct()
 {
     parent::__construct();
     // Set the general timezone
     $timezone = $this->redis->get("minera_timezone") ? $this->redis->get("minera_timezone") : 'Europe/Rome';
     date_default_timezone_set($timezone);
 }
 public function __construct()
 {
     parent::__construct();
     $this->themes->validator_enabled = TRUE;
     // Is the Admin Logged In?
     $this->logged_in = Auth::instance()->logged_in();
 }
示例#6
0
 public function __construct()
 {
     parent::__construct();
     //  calls the constructor
     if (!$this->customer->isLogged()) {
         // if customer is not logged in redirect to account login page
         redirect('account/login');
     }
     $this->load->model('Pages_model');
     $this->load->model('Customers_model');
     // load the customers model
     $this->load->model('Addresses_model');
     // load the addresses model
     $this->load->model('Security_questions_model');
     // load the security questions model
     $this->load->model('Messages_model');
     // load the messages model
     $this->load->model('Orders_model');
     // load the orders model
     $this->load->model('Reservations_model');
     // load the reservations model
     $this->load->library('cart');
     // load the cart library
     $this->load->library('currency');
     // load the currency library
     $this->load->library('country');
     $this->lang->load('account/account');
 }
示例#7
0
 function __construct()
 {
     parent::__construct();
     // Javascript Header
     $this->template->header->validator_enabled = TRUE;
     $this->template->content = new View('static/' . $this->default);
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Orders_model');
     $this->load->model('paypal_express/Paypal_model');
     $this->lang->load('paypal_express/paypal_express');
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Orders_model');
     $this->load->model('Addresses_model');
     $this->load->model('Countries_model');
 }
示例#10
0
 public function __construct()
 {
     parent::__construct();
     //  calls the constructor
     $this->load->model('Pages_model');
     $this->load->model('Addresses_model');
     // load the addresses model
     $this->load->model('Orders_model');
     // load the orders model
     $this->load->model('Locations_model');
     // load the locations model
     $this->load->model('Countries_model');
     $this->load->model('Extensions_model');
     $this->load->library('customer');
     // load the customer library
     $this->load->library('cart');
     // load the cart library
     $this->load->library('location');
     // load the location library
     $this->load->library('currency');
     // load the currency library
     $this->load->library('country');
     // load the currency library
     $this->load->library('user_agent');
     $this->lang->load('checkout');
 }
示例#11
0
 /**
  * Function: __construct
  *
  * Description: A default constructor that sets instance variables.
  *
  * Views:enhancedmap/iframe_map_header, enhancedmap/iframe_map_footer
  *
  * Results: Instance variables are set
  */
 public function __construct()
 {
     parent::__construct();
     // Load cache
     $this->cache = new Cache();
     // Load Session
     $this->session = Session::instance();
     $this->themes->map_enabled = TRUE;
     $this->themes->slider_enabled = TRUE;
     // Load Header & Footer
     $this->template->header = new View('enhancedmap/iframe_map_header');
     $this->template->footer = new View('enhancedmap/iframe_map_footer');
     // Set Table Prefix
     $this->table_prefix = Kohana::config('database.default.table_prefix');
     // Retrieve Default Settings
     $site_name = Kohana::config('settings.site_name');
     // Prevent Site Name From Breaking up if its too long
     // by reducing the size of the font
     if (strlen($site_name) > 20) {
         $site_name_style = " style=\"font-size:21px;\"";
     } else {
         $site_name_style = "";
     }
     $this->template->header->site_name = $site_name;
     $this->template->header->site_name_style = $site_name_style;
     $this->template->header->site_tagline = Kohana::config('settings.site_tagline');
     $this->template->header->this_page = "";
     $this->template->footer->footer_block = $this->themes->footer_block();
 }
示例#12
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Reservation_model');
     $this->load->model('Inscription_model');
     $this->load->library('form_validation');
     $this->load->helper('form');
 }
示例#13
0
 public function __construct()
 {
     parent::__construct();
     // calls the constructor
     $this->load->model('Pages_model');
     // load the menus model
     $this->lang->load('pages_module/pages_module');
 }
示例#14
0
 public function __construct()
 {
     parent::__construct();
     // calls the constructor
     $this->load->library('customer');
     // loads language file
     $this->lang->load('account_module/account_module');
 }
示例#15
0
 public function __construct()
 {
     parent::__construct();
     // calls the constructor
     $this->load->model('Featured_menus_model');
     // load the featured menus model
     $this->lang->load('featured_menus/featured_menus');
 }
示例#16
0
 function __construct()
 {
     parent::__construct();
     // Javascript Header
     $this->template->header->validator_enabled = TRUE;
     // Is the Admin Logged In?
     $this->logged_in = Auth::instance()->logged_in() ? TRUE : FALSE;
 }
示例#17
0
 public function __construct()
 {
     parent::__construct();
     //  calls the constructor
     $this->load->model('Pages_model');
     $this->load->library('user');
     // load the user library
 }
 public function __construct()
 {
     parent::__construct();
     //  calls the constructor
     $this->load->model('Reservations_model');
     $this->load->library('location');
     // load the location library
     $this->lang->load('reservation_module/reservation_module');
 }
示例#19
0
 public function __construct()
 {
     parent::__construct();
     // calls the constructor
     $this->load->model('Menus_model');
     // load the menus model
     $this->load->model('Categories_model');
     // load the menus model
     $this->lang->load('categories_module/categories_module');
 }
示例#20
0
 public function __construct()
 {
     parent::__construct(get_class(), 'posts', '/views/posts/');
     include DX_ROOT_DIR . '/models/comments_model.php';
     $this->commentsModel = new \Models\Comments_Model();
     include DX_ROOT_DIR . '/models/users_model.php';
     $this->usersModel = new \Models\Users_Model();
     include DX_ROOT_DIR . '/models/tags_model.php';
     $this->tagsModel = new \Models\Tags_Model();
 }
示例#21
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Salle_model');
     $this->load->model('Reservation_model');
     $this->load->model('Responsable_model');
     $this->load->model('Artiste_model');
     $this->load->helper('form');
     $this->load->library('form_validation');
 }
示例#22
0
 public function __construct()
 {
     parent::__construct();
     // Load cache
     $this->cache = new Cache();
     $this->auth = new Auth();
     // User
     if (array_key_exists('auth_user', $_SESSION)) {
         $this->user = new User_Model($_SESSION['auth_user']->id);
     }
 }
示例#23
0
 public function __construct()
 {
     parent::__construct();
     // calls the constructor
     $this->load->model('Pages_model');
     $this->load->library('location');
     // load the location library
     $this->load->library('currency');
     // load the currency library
     $this->lang->load('contact');
 }
示例#24
0
 public function __construct()
 {
     parent::__construct();
     //  calls the constructor
     $this->load->model('Reservations_model');
     $this->load->model('Pages_model');
     $this->lang->load('reservation');
     if ($this->config->item('reservation_mode') !== '1') {
         $this->alert->set('alert', $this->lang->line('alert_reservation_disabled'));
         redirect('home');
     }
 }
示例#25
0
 public function __construct()
 {
     parent::__construct();
     // calls the constructor
     $this->load->model('Layouts_model');
     // load the menus model
     $this->load->model('Banners_model');
     // load the menus model
     $this->load->model('Image_tool_model');
     // load the menus model
     $this->lang->load('banners_module/banners_module');
 }
示例#26
0
 public function __construct()
 {
     parent::__construct();
     //  calls the constructor
     if (!$this->customer->isLogged()) {
         // if customer is not logged in redirect to account login page
         redirect('account/login');
     }
     $this->load->model('Messages_model');
     // loads messages model
     $this->lang->load('account/inbox');
 }
示例#27
0
 public function __construct()
 {
     parent::__construct();
     // calls the constructor
     $this->load->library('location');
     // load the location library
     $this->load->library('currency');
     // load the location library
     $this->lang->load('local_module/local_module');
     $referrer_uri = explode('/', str_replace(site_url(), '', $this->agent->referrer()));
     $this->referrer_uri = (!empty($referrer_uri[0]) and $referrer_uri[0] !== 'local_module') ? $referrer_uri[0] : 'home';
 }
示例#28
0
 function __construct()
 {
     parent::__construct();
     // Javascript Header
     $this->template->header->validator_enabled = TRUE;
     // Pack the javascript using the javascriptpacker helper
     $myPacker = new javascriptpacker($footerjs, 'Normal', false, false);
     $footerjs = $myPacker->pack();
     $this->template->header->js = $footerjs;
     // Is the Admin Logged In?
     $this->logged_in = Auth::instance()->logged_in() ? TRUE : FALSE;
 }
示例#29
0
 public function __construct()
 {
     parent::__construct();
     //  calls the constructor
     if (!$this->customer->isLogged()) {
         // if customer is not logged in redirect to account login page
         redirect('account/login');
     }
     $this->load->model('Customers_model');
     $this->load->model('Security_questions_model');
     // load the security questions model
     $this->lang->load('account/details');
 }
示例#30
0
 public function __construct()
 {
     parent::__construct();
     //  calls the constructor
     if (!$this->customer->isLogged()) {
         // if customer is not logged in redirect to account login page
         redirect('account/login');
     }
     $this->load->model('Countries_model');
     $this->load->model('Addresses_model');
     $this->load->model('Pages_model');
     $this->lang->load('account/address');
 }