當前位置: 首頁>>代碼示例>>PHP>>正文


PHP MX_Controller::__construct方法代碼示例

本文整理匯總了PHP中MX_Controller::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP MX_Controller::__construct方法的具體用法?PHP MX_Controller::__construct怎麽用?PHP MX_Controller::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在MX_Controller的用法示例。


在下文中一共展示了MX_Controller::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->helper('load_controller');
     //$this->load->libraries('load_controller');
     $this->load->helper('load_model');
 }
開發者ID:GGie,項目名稱:CI,代碼行數:7,代碼來源:web.php

示例2:

 function __construct()
 {
     // this is your constructor
     parent::__construct();
     session_start();
     $this->load->model('admin/users_model');
 }
開發者ID:pcmishra22,項目名稱:equitybuild,代碼行數:7,代碼來源:admin.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->acl->auth('product');
     $this->load->library('grocery_CRUD');
     $this->load->model('ModProduct');
 }
開發者ID:awalinyudhana,項目名稱:medikasarana,代碼行數:7,代碼來源:Product.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     Modules::run('login/is_logged_in');
     $this->load->model('view');
     $this->load->config('config');
 }
開發者ID:saqar,項目名稱:FusionCMS-themes-and-modules,代碼行數:7,代碼來源:gm_apply.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('Mkematian');
     $this->load->model('Mwarga');
     $this->load->model('Mkartukeluarga');
 }
開發者ID:rajasadev,項目名稱:erte,代碼行數:7,代碼來源:Updatekk.php

示例6:

 function __construct()
 {
     parent::__construct();
     $this->load->library('Auth');
     $this->load->library('form_validation');
     $this->base_uri = $this->config->item('base_url');
 }
開發者ID:rebekz,項目名稱:codeigniter_basic,代碼行數:7,代碼來源:kosong.php

示例7:

 function __construct()
 {
     parent::__construct();
     $this->global_model->config();
     $this->load->model('sender_model');
     $this->load->library('form_validation');
 }
開發者ID:EYETS,項目名稱:smser,代碼行數:7,代碼來源:sender.php

示例8: redirect

 function __construct()
 {
     parent::__construct();
     // check user is logged in, if not send them away from this controller
     if (!$this->session->userdata('session_user')) {
         redirect('/users/login/' . $this->core->encode($this->uri->uri_string()));
     }
     // get site permissions and redirect if it don't have access to this module
     if (!$this->permission->sitePermissions) {
         show_error('You do not have permission to view this page');
     }
     if (!in_array('community', $this->permission->sitePermissions)) {
         show_error('You do not have permission to view this page');
     }
     // get siteID, if available
     if (defined('SITEID')) {
         $this->siteID = SITEID;
     }
     // load libs etc
     $this->load->library('tags');
     $this->load->model('community_model', 'community');
     $this->load->model('messages_model', 'messages');
     $this->load->model('users_model', 'users');
     // load modules
     $this->load->module('pages');
 }
開發者ID:NaszvadiG,項目名稱:ForgeIgniter-CI-2.x,代碼行數:26,代碼來源:messages.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->create_view_controller();
     $this->create_validation_controller();
     $this->create_model();
 }
開發者ID:nguyenxuangiap,項目名稱:webads,代碼行數:7,代碼來源:AbstractFilterFactory.php

示例10: sucursales

 function sucursales()
 {
     parent::__construct();
     $this->load->model('inicio/data_model');
     $this->load->model('ofertas/ofertas_model');
     $this->load->model('sucursales_model');
 }
開發者ID:Apeplazas,項目名稱:plazadelatecnologia,代碼行數:7,代碼來源:sucursales.php

示例11: redirect

 function __construct()
 {
     parent::__construct();
     $this->load->model('site/site_model');
     $this->load->model('administration/reports_model');
     $this->load->model('admin/users_model');
     $this->load->model('admin/sections_model');
     $this->load->model('admin/admin_model');
     $this->load->model('payroll_model');
     $this->load->model('hr/personnel_model');
     $this->load->model('admin/branches_model');
     $this->load->model('petty_cash_model');
     $this->load->model('accounts_model');
     $this->load->model('nurse/nurse_model');
     $this->load->model('reception/reception_model');
     $this->load->model('reception/database');
     $this->load->model('medical_admin/medical_admin_model');
     $this->load->model('pharmacy/pharmacy_model');
     $this->load->model('hospital_accounts_model');
     $this->load->model('administration/sync_model');
     //$this->load->model('administration/personnel_model');
     $this->load->model('auth/auth_model');
     if (!$this->auth_model->check_login()) {
         redirect('login');
     }
 }
開發者ID:marttkip,項目名稱:erp_hotel,代碼行數:26,代碼來源:accounts.php

示例12:

 function __construct()
 {
     parent::__construct();
     // Not truely required as it should be auto-loaded
     $this->load->library('cms_locale');
     $this->template['module'] = "language";
 }
開發者ID:wildanSawaludin,項目名稱:ci-cms,代碼行數:7,代碼來源:language.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->library('administrator');
     $this->load->model('session_model');
     requirePermission("viewSessions");
 }
開發者ID:GlassFace,項目名稱:FusionCMS,代碼行數:7,代碼來源:sessions.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->acl->auth('credit');
     $this->load->model('ModCredit');
     // $this->status = [0 => "pending", 1 => "terbayar"];
 }
開發者ID:ibnoe,項目名稱:medikasarana,代碼行數:7,代碼來源:Credit.php

示例15:

 function __construct()
 {
     parent::__construct();
     $this->access_library_siam->is_logged_in();
     $this->load->model('akad_model');
     $this->load->model('sirak_akademik/sirak_akad_model');
 }
開發者ID:triasfahrudin,項目名稱:pct-project,代碼行數:7,代碼來源:akadControllerSiam.php


注:本文中的MX_Controller::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。