本文整理汇总了PHP中My_Controller类的典型用法代码示例。如果您正苦于以下问题:PHP My_Controller类的具体用法?PHP My_Controller怎么用?PHP My_Controller使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了My_Controller类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1:
function __construct()
{
parent::__construct();
$this->load->model('mdl_buku_besar', 'buku_besar');
$this->load->library('pdf');
$this->load->library('fungsi');
}
开发者ID:akatgelar,项目名称:51mk3u-8p1hv2,代码行数:7,代码来源:buku_besar.php
示例2:
function __construct()
{
parent::__construct();
$this->load->model('gamem');
$this->load->model('articlem');
$this->load->model('typem');
}
开发者ID:biao0102,项目名称:website_management,代码行数:7,代码来源:article.php
示例3:
function __construct()
{
parent::__construct();
$this->load->model('mdl_keberangkatan', 'keberangkatan');
$this->load->model('mdl_calon_haji', 'calon_haji');
$this->load->library(array('fungsi', 'pquery'));
}
开发者ID:akatgelar,项目名称:51mk3u-8p1hv2,代码行数:7,代码来源:keberangkatan.php
示例4: __construct
/**
* 构造函数
* Enter description here ...
*/
public function __construct()
{
parent::__construct();
$this->load->model('AreaModel');
$this->load->library('Tree');
$this->load->library('Page');
}
开发者ID:ZuoYouLai,项目名称:tkglxtphp,代码行数:11,代码来源:Area6666.php
示例5: __construct
public function __construct()
{
parent::__construct();
$this->load->model('Dynasty_Model');
$this->load->model('Poetry_Model', '', true);
$this->load->model('Author_Model', '', true);
}
开发者ID:sunxuechao,项目名称:application,代码行数:7,代码来源:Poem.php
示例6: __construct
/**
* 构造函数
* Enter description here ...
*/
public function __construct()
{
parent::__construct();
$this->load->model('UserModel');
$this->load->model('RoleModel');
$this->load->library('Page');
}
开发者ID:ZuoYouLai,项目名称:tkglxtphp,代码行数:11,代码来源:User.php
示例7: __construct
public function __construct()
{
parent::__construct();
$this->load->library('email_lib');
$this->load->helper(array('url', 'cookie'));
$this->load->model('user_model');
}
开发者ID:LunchMatcher,项目名称:lunchcode,代码行数:7,代码来源:home.php
示例8:
function __construct()
{
parent::__construct();
// Load the user_login Class
$this->load->library('simple_user_login');
$this->load->helper(array('form', 'html', 'url'));
}
开发者ID:bigjoevtrj,项目名称:CI-ACL,代码行数:7,代码来源:login.php
示例9: __construct
public function __construct()
{
parent::__construct();
$this->load->model('User_model');
$this->load->model('Logistics_model');
$this->db->cache_off();
}
开发者ID:kousik,项目名称:tidiit,代码行数:7,代码来源:user.php
示例10: __construct
public function __construct()
{
parent::__construct();
$this->load->model('Post');
$this->load->model('Category');
$this->load->model('Tag');
}
开发者ID:gieart87,项目名称:ci-blog,代码行数:7,代码来源:Posts.php
示例11: __construct
/**
* Constructor
*
* @access public
*/
public function __construct()
{
parent::__construct();
$this->load->model('News_model', 'News_model', True);
$this->load->model('Pagecat_model', 'Pagecat_model', True);
$this->load->model('Newscats_model', 'Newscats_model', True);
}
开发者ID:goudaelalfy,项目名称:nahda,代码行数:12,代码来源:news.php
示例12:
function __construct()
{
parent::__construct();
//$this->load->model('mdl_master_akun', 'master_akun');
}
开发者ID:akatgelar,项目名称:51mk3u-8p1hv2,代码行数:7,代码来源:backup_database.php
示例13: __construct
public function __construct()
{
parent::__construct();
$this->load->library('user_agent');
$this->load->model('Dynasty_Model');
$this->load->model('Poetry_Model', '', true);
}
开发者ID:sunxuechao,项目名称:application,代码行数:7,代码来源:Home.php
示例14: __construct
public function __construct()
{
try {
parent::__construct();
$this->data['title'] = "Menu Setting";
//Browser Title
//Define Errors Here//
$this->cls_msg = array();
$this->cls_msg["no_result"] = "No information found about news.";
$this->cls_msg["save_err"] = "New main menu failed to add.";
$this->cls_msg["save_err_blank"] = "Sorry ! Please provide data to required field.";
$this->cls_msg["save_succ"] = "New main menu added successfully.";
$this->cls_msg["save_succ_permit"] = "Menu permission set successfully.";
$this->cls_msg["save_err_permit"] = "menu permission failed to set.";
$this->cls_msg["delete_err"] = "Information about news failed to remove.";
$this->cls_msg["delete_succ"] = "Information about news removed successfully.";
$this->cls_msg["status_succ"] = "Status of news saved successfully.";
$this->cls_msg["status_err"] = "Status of news failed to save.";
//end Define Errors Here//
$this->pathtoclass = admin_base_url() . $this->router->fetch_class() . "/";
//for redirecting from this class
// loading default model here //
$this->load->model("menu_model", "mod_menu");
// end loading default model here //
} catch (Exception $err_obj) {
show_error($err_obj->getMessage());
}
}
开发者ID:bantyroy,项目名称:acs_dev_prj,代码行数:28,代码来源:menu_setting.php
示例15:
function __construct()
{
parent::__construct();
$this->load->model('mdl_calon_haji', 'calon_haji');
$this->load->library(array('fungsi', 'pquery'));
$this->load->library('pagination_custom');
}
开发者ID:akatgelar,项目名称:51mk3u-8p1hv2,代码行数:7,代码来源:calon_haji.php
示例16: array
function __construct()
{
parent::__construct();
$this->load->library('session');
$this->data = array();
$this->data['pagetitle'] = 'Portfolio';
}
开发者ID:ChingChongBeanMan,项目名称:StockTickerAgent,代码行数:7,代码来源:Portfolio.php
示例17: redirect
function __construct()
{
parent::__construct();
if (!$this->_user_id) {
redirect();
}
//配置文件获取应用根目录
$this->base_url = $this->config->item("base_url");
//加载地区表Model
$this->load->model('M_area');
//推荐会展
$this->load->model('recommond_model');
$recommond_exhibition = $this->recommond_model->recommond_exhibition();
if (!empty($recommond_exhibition)) {
$this->_view_data['recommond_exhibition'] = $recommond_exhibition;
}
$this->load->model('user_model', 'main_model');
$this->_user = (array) $this->main_model->get_full_user_by_id($this->_user_id);
$this->_view_data['arr_user'] = $this->_user;
$path = @$this->_user['business_id'];
if ($path) {
$x_bu_data_top = $this->collection_model->get_business_class("hz_exhibition_class", "path like '%{$path}-%'")->result_array();
if (!empty($x_bu_data_top)) {
$this->_view_data['x_bu_data_top'] = $x_bu_data_top;
}
}
if (!empty($this->_user['nation'])) {
//地区 start
$this->_view_data['base_url'] = $this->base_url;
$this->_view_data['beijing'] = $this->M_area->get('city', $this->_user['nation']);
$this->_view_data['province'] = $this->M_area->get('province');
if (!empty($this->_user['province'])) {
$this->_view_data['data_city'] = $this->M_area->get('town', $this->_user['province'])->result_array();
}
//地区 end
} else {
//地区 start
$this->_view_data['base_url'] = $this->base_url;
//获取所有的省份信息
$this->_view_data['province'] = $this->M_area->get('province');
//获取北京所有的城市/地区信息,以便于初始化载入这些信息,北京的ID值为1
$this->_view_data['beijing'] = $this->M_area->get('city', 535);
//地区 end
}
//user template start
$this->load->model('template_setting_model');
$this->load->model('template_model');
$where_user_template = array('g_id' => $this->_user_id, 'type' => 1);
$data_user_template = $this->template_setting_model->get_row_array($where_user_template);
if (!empty($data_user_template)) {
$where_find_template = array('id' => $data_user_template['t_id']);
$data_find_template = $this->template_model->get_row_array($where_find_template);
if (!empty($data_find_template)) {
$data_user_template['css_file'] = $data_find_template['css_file'];
}
$this->_view_data['user_template'] = $data_user_template;
}
//user template end
}
开发者ID:aidear,项目名称:100event,代码行数:59,代码来源:myinfo.php
示例18: __construct
public function __construct()
{
parent::__construct();
$this->load->model('MarkManagerModel', 'MarkManager');
//导入对应的phpexcel库
$this->load->library('PHPExcel');
$this->load->library('PHPExcel/IOFactory');
}
开发者ID:ZuoYouLai,项目名称:DX_Project,代码行数:8,代码来源:MarkManager.php
示例19: redirect
function __construct()
{
parent::__construct();
$this->load->model('lecture/Lecture_model', 'lecture');
if (!$this->session->userdata('lecture')) {
redirect(base_url() . 'lecture/login');
}
}
开发者ID:GowthamITMARTX,项目名称:pBISsRjl,代码行数:8,代码来源:Students.php
示例20: __construct
/**
* Constructor
*
* @access public
*/
public function __construct()
{
parent::__construct();
$this->load->model('Menu_link_model', 'Menu_link_model', True);
$this->load->model('Page_model', 'Page_model', True);
$this->load->model('Pagetype_model', 'Pagetype_model', True);
$this->load->model('Pagecat_model', 'Pagecat_model', True);
}
开发者ID:goudaelalfy,项目名称:nahda,代码行数:13,代码来源:menulink.php
注:本文中的My_Controller类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论