示例#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__));
 }
 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
 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');
 }
 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');
 }
 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);
 }
 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);
 }
示例#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
 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();
 }