本文整理汇总了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');
}
示例2:
function __construct()
{
// this is your constructor
parent::__construct();
session_start();
$this->load->model('admin/users_model');
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->acl->auth('product');
$this->load->library('grocery_CRUD');
$this->load->model('ModProduct');
}
示例4: __construct
public function __construct()
{
parent::__construct();
Modules::run('login/is_logged_in');
$this->load->model('view');
$this->load->config('config');
}
示例5: __construct
public function __construct()
{
parent::__construct();
$this->load->model('Mkematian');
$this->load->model('Mwarga');
$this->load->model('Mkartukeluarga');
}
示例6:
function __construct()
{
parent::__construct();
$this->load->library('Auth');
$this->load->library('form_validation');
$this->base_uri = $this->config->item('base_url');
}
示例7:
function __construct()
{
parent::__construct();
$this->global_model->config();
$this->load->model('sender_model');
$this->load->library('form_validation');
}
示例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');
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->create_view_controller();
$this->create_validation_controller();
$this->create_model();
}
示例10: sucursales
function sucursales()
{
parent::__construct();
$this->load->model('inicio/data_model');
$this->load->model('ofertas/ofertas_model');
$this->load->model('sucursales_model');
}
示例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');
}
}
示例12:
function __construct()
{
parent::__construct();
// Not truely required as it should be auto-loaded
$this->load->library('cms_locale');
$this->template['module'] = "language";
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->load->library('administrator');
$this->load->model('session_model');
requirePermission("viewSessions");
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->acl->auth('credit');
$this->load->model('ModCredit');
// $this->status = [0 => "pending", 1 => "terbayar"];
}
示例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');
}