예제 #1
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('spletka_m');
     $this->data['meta_title'] = 'Sodelovanje';
     $this->data['controller'] = strtolower(get_class());
 }
예제 #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__));
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('packages_m');
     $this->basePath = base_url('packages');
     $this->load->library('ion_auth');
 }
예제 #4
0
파일: user.php 프로젝트: Nnamso/tbox
 public function __construct()
 {
     parent::__construct();
     $this->lang->load('user');
     $this->load->model('users_m');
     $this->user = $this->session->userdata('user');
 }
예제 #5
0
 public function __construct()
 {
     parent::__construct();
     if ($this->session->userId) {
         redirect('admin/dashboard');
     }
 }
예제 #6
0
파일: Pages.php 프로젝트: kams90/fitCMS
 public function __construct()
 {
     parent::__construct();
     // Load classes
     $this->load->model('pages/pages_model', 'pages');
     $this->load->model('routes/routes_model', 'routes');
 }
예제 #7
0
파일: pages.php 프로젝트: fathan/CI-Hotel
 public function __construct()
 {
     parent::__construct();
     $this->load->model('m_page');
     $this->load->model('m_promo');
     $this->load->model('m_news');
 }
예제 #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');
 }
예제 #9
0
파일: home.php 프로젝트: jhnrustan/shopback
 function __construct()
 {
     parent::__construct();
     $this->load->library("pagination");
     if ($this->uri->segment(3) != NULL) {
         $uriii = $this->uri->segment(3);
     }
 }
예제 #10
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('hotels_m');
     $this->basePath = base_url('hotels');
     $this->load->library('ion_auth');
     $this->load->library("mypaypal");
 }
예제 #11
0
 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');
 }
예제 #12
0
 public function __construct()
 {
     parent::__construct();
     if ($this->user_m->loggedin() == FALSE) {
         redirect('admin/user/login');
     }
     $this->load->model('product_m');
 }
예제 #13
0
 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');
 }
예제 #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);
 }
예제 #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');
 }
예제 #16
0
파일: Page.php 프로젝트: nugato/nuCMS
 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');
 }
예제 #17
0
 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');
 }
예제 #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__));
 }
예제 #19
0
 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');
 }
예제 #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);
 }
예제 #21
0
 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');
 }
예제 #22
0
 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);
 }
예제 #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');
 }
예제 #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');
 }
예제 #25
0
파일: home.php 프로젝트: Zamir10/sharq
 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');
 }
예제 #26
0
파일: booking.php 프로젝트: fathan/CI-Hotel
 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');
 }
예제 #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());
 }
예제 #28
0
파일: cart.php 프로젝트: 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);
     }
 }
예제 #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);
 }
예제 #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();
 }