当前位置: 首页>>代码示例>>PHP>>正文


PHP MX_Controller类代码示例

本文整理汇总了PHP中MX_Controller的典型用法代码示例。如果您正苦于以下问题:PHP MX_Controller类的具体用法?PHP MX_Controller怎么用?PHP MX_Controller使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了MX_Controller类的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类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。