Example #1
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('spletka_m');
     $this->data['meta_title'] = 'Sodelovanje';
     $this->data['controller'] = strtolower(get_class());
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('form_validation');
     $this->redirect_to = $this->agent->referrer();
     $this->template->set_layout(get_layout(__CLASS__));
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->model('packages_m');
     $this->basePath = base_url('packages');
     $this->load->library('ion_auth');
 }
Example #4
0
File: user.php Project: Nnamso/tbox
 public function __construct()
 {
     parent::__construct();
     $this->lang->load('user');
     $this->load->model('users_m');
     $this->user = $this->session->userdata('user');
 }
Example #5
0
 public function __construct()
 {
     parent::__construct();
     if ($this->session->userId) {
         redirect('admin/dashboard');
     }
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     // Load classes
     $this->load->model('pages/pages_model', 'pages');
     $this->load->model('routes/routes_model', 'routes');
 }
Example #7
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('m_page');
     $this->load->model('m_promo');
     $this->load->model('m_news');
 }
Example #8
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper(array('form', 'url'));
     $this->load->library(array('session', 'form_validation', 'email'));
     $this->load->database();
     $this->load->model('user_model');
 }
Example #9
0
 function __construct()
 {
     parent::__construct();
     $this->load->library("pagination");
     if ($this->uri->segment(3) != NULL) {
         $uriii = $this->uri->segment(3);
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->model('hotels_m');
     $this->basePath = base_url('hotels');
     $this->load->library('ion_auth');
     $this->load->library("mypaypal");
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->model('hotels_m');
     $this->load->model('facebook/facebook_m', 'facebook_m');
     $this->basePath = base_url('hotels');
     $this->load->library('ion_auth');
 }
Example #12
0
 public function __construct()
 {
     parent::__construct();
     if ($this->user_m->loggedin() == FALSE) {
         redirect('admin/user/login');
     }
     $this->load->model('product_m');
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->model('invoice_m');
     //        $this->basePath = base_url('hotels');
     $this->load->library('ion_auth');
     $this->load->model('hotels/hotels_m');
 }
Example #14
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('inflector');
     $this->load->model('user_model', 'users');
     $this->mTitle = humanize($this->mAction);
     $this->_push_breadcrumb('Account');
     $this->_push_breadcrumb($this->mTitle);
 }
Example #15
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('teacher_m');
     $this->load->model('profile_m');
     $this->load->model('familybg_m');
     $this->load->model('personalinfo_m');
     $this->load->model('pds');
 }
Example #16
0
 public function __construct()
 {
     parent::__construct();
     // Load classes
     $this->load->model('page/page_model', 'page');
     $this->load->model('page/page_translations_model', 'page_translations');
     $this->load->model('route/route_model', 'route');
     $this->load->library('NuBloxDecoder', 'NuBloxDecoder');
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->library('grocery_CRUD');
     $this->upload_path = './assets/uploads/' . 'hotels';
     $this->wrapper = 'gc_admin_wrapper';
     $this->load->model('generic_model');
     $this->load->helper('email');
 }
Example #18
0
 public function __construct()
 {
     parent::__construct();
     if (!$this->ion_auth->logged_in()) {
         redirect();
     }
     $this->load->model('messages_m', 'msg');
     $this->template->set_layout(get_layout(__CLASS__));
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->library('ion_auth');
     $this->ion_auth->logged_in();
     //is_already_logged_in();
     $this->header['page_name'] = $this->router->fetch_class();
     $this->load->model('payment_model', 'service');
 }
Example #20
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('inflector');
     $this->load->library('form_builder');
     $this->mTitle = humanize($this->mAction);
     $this->_push_breadcrumb('Example');
     $this->_push_breadcrumb($this->mTitle);
 }
 public function __construct()
 {
     parent::__construct();
     if (!$this->ion_auth->logged_in()) {
         redirect('login', 'refresh');
     }
     $this->load->model('message_m');
     $this->load->model('hotels/hotels_m');
     $this->load->library('ion_auth');
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->model('enquiry_m');
     $this->basePath = base_url('enquiry');
     // Captcha parameters:
     $captchaConfig = array('CaptchaId' => 'FormCaptcha', 'UserInputId' => 'CaptchaCode');
     // load the BotDetect Captcha library
     $this->load->library('botdetect/BotDetectCaptcha', $captchaConfig);
 }
Example #23
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('packages_m');
     $this->basePath = base_url('packages');
     $this->load->library('ion_auth');
     $this->load->library("mypaypal");
     $this->load->library('form_validation');
     $this->load->helper('email');
 }
Example #24
0
 public function __construct()
 {
     parent::__construct();
     $this->session->set_userdata('language', 'serbian');
     $this->data['language'] = $this->data['language'] = 'sr';
     $this->load->helper('captcha');
     $this->load->model('page_m');
     $this->load->model('course_m');
     $this->load->model('category_m');
     // $this->load->model('user_m');
 }
Example #25
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('service_m');
     $this->load->model('news_m');
     $this->load->model('brand_m');
     $this->load->model('page_m');
     $this->load->model('message_m');
     $this->load->library('form_validation');
     $this->load->library('session');
 }
Example #26
0
 public function __construct()
 {
     parent::__construct();
     add_meta_title('Booking');
     $this->load->library('cart');
     $this->load->model('m_user');
     $this->load->model('m_page');
     $this->load->model('m_promo');
     $this->load->model('m_room');
     $this->load->model('m_order');
 }
Example #27
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('frontend/site_settings_model');
     $restrict = $this->site_settings_model->get_settings_name('restrict_roaming');
     $restrict_ = $this->site_settings_model->get_settings_name('listing_restrict_roaming');
     if ($restrict_[0]->settings_value == 'enable' && $restrict[0]->settings_value == 'enable') {
         $this->loginControl();
     }
     // var_dump($this->session->all_userdata());
 }
Example #28
0
File: cart.php Project: Nnamso/tbox
 public function __construct()
 {
     parent::__construct();
     //$this->lang->load('cart');
     $this->load->driver('cache', array('adapter' => 'file'));
     if ($this->session->userdata('order_session_id')) {
         $this->session_id = $this->session->userdata('order_session_id');
     } else {
         $this->session_id = $this->session->userdata('session_id');
         $this->session->set_userdata('order_session_id', $this->session_id);
     }
 }
Example #29
0
 public function __construct()
 {
     parent::__construct();
     $this->session->set_userdata('language', 'serbian');
     $this->data['language'] = 'sr';
     $this->load->helper('captcha');
     $this->load->model('page_m');
     $this->load->model('course_m');
     $this->load->model('category_m');
     $total_url = $this->uri->uri_string();
     $this->data['lang_url'] = $this->uri->segment(1);
     $this->data['total_url'] = str_replace("/", "--", $total_url);
 }
Example #30
0
 public function __construct()
 {
     parent::__construct();
     $this->_configFrontend = Config::factory(Config::File_Array, $this->_configMain->get('configs') . 'frontend.php');
     if (Request::get('logout', 'boolean', false)) {
         User::getInstance()->logout();
         session_destroy();
         if (!Request::isAjax()) {
             Response::redirect(Request::url(array('index'), true));
         }
     }
     $this->checkAuth();
 }