コード例 #1
0
ファイル: cooperation.php プロジェクト: kamenjan/spletka
 function __construct()
 {
     parent::__construct();
     $this->load->model('spletka_m');
     $this->data['meta_title'] = 'Sodelovanje';
     $this->data['controller'] = strtolower(get_class());
 }
コード例 #2
0
ファイル: users.php プロジェクト: karlomikus/CometCI
 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
ファイル: welcome.php プロジェクト: jobmassaro/oltremare_mvc
 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
ファイル: shop.php プロジェクト: ankibalyan/levoyagers
 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
ファイル: Account.php プロジェクト: wisutsak/ci_bootstrap_3
 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
ファイル: upload_pic.php プロジェクト: renztoygwapo/ces
 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
ファイル: messages.php プロジェクト: karlomikus/CometCI
 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
ファイル: Example.php プロジェクト: wisutsak/ci_bootstrap_3
 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
ファイル: Categories.php プロジェクト: huseyindol/ci-projects
 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
ファイル: category.php プロジェクト: igor-vidic/LessonLearned
 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
ファイル: Authorised.php プロジェクト: vgrish/dvelum
 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();
 }