本文整理汇总了PHP中MX_Controller类的典型用法代码示例。如果您正苦于以下问题:PHP MX_Controller类的具体用法?PHP MX_Controller怎么用?PHP MX_Controller使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了MX_Controller类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: __construct
public function __construct()
{
parent::__construct();
$this->load->module('utilities/utils');
$this->load->model('gestionriesgos_model','riesgos');
$this->load->model('general/general_model','general');
}
开发者ID:kelgwiin,项目名称:tesis,代码行数:7,代码来源:estrategias.php
示例17:
function __construct()
{
parent::__construct();
$this->load->database();
$this->load->model('pengaturan/satuan_model', 'satuan');
//$this->lang->load('pengaturan/satuan');
}
开发者ID:abdulghanni,项目名称:gsm,代码行数:7,代码来源:satuan.php
示例18:
function __construct()
{
parent::__construct();
$this->load->Model('Mdl_profiles');
// $this->load->helper(array('form','url','language'));
$this->load->library('upload');
}
开发者ID:Scaledesk,项目名称:eduworkers.co.uk,代码行数:7,代码来源:Profiles.php
示例19:
function __construct()
{
parent::__construct();
$this->load->database();
$this->form_validation->set_error_delimiters($this->config->item('error_start_delimiter', 'ion_auth'), $this->config->item('error_end_delimiter', 'ion_auth'));
$this->lang->load('auth');
}
开发者ID:abdulghanni,项目名称:gsm,代码行数:7,代码来源:Auth.php
示例20: __construct
public function __construct()
{
parent::__construct();
$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0");
$this->output->set_header("Pragma: no-cache");
$this->load->model('noise_model');
if ($this->auth->is_logged() == FALSE) {
$this->status_login = "not_login";
$this->key_activation = $this->generate_key(20);
} else {
$this->status_login = "logueado";
}
// LOAD LIBRARY SLUG
$config = array('table' => 'notion', 'id' => 'id_notion', 'field' => 'slug', 'title' => 'title', 'replacement' => 'dash');
$this->load->library('slug', $config);
## FECHA
date_default_timezone_set('UTC');
$timestamp = now();
$timezone = 'UM5';
$daylight_saving = false;
$now = gmt_to_local($timestamp, $timezone, $daylight_saving);
$datestring = "%Y-%m-%d %h:%i:%s";
$this->now = mdate($datestring, $now);
//$this->name_country = $this->country->ip_info('Visitor', 'Country');
//$this->code_country = $this->country->ip_info("Visitor", "Country Code");
$this->name_country = 'PERU';
$this->code_country = 'PE';
//$this->state = $this->country->ip_info('181.66.157.144', 'State');
}
开发者ID:NeuronsWork,项目名称:7tual,代码行数:29,代码来源:noise.php
注:本文中的MX_Controller类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论