• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP CI_controller类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了CI_controller类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('news_model');
     $this->load->helper('url_helper');
     //var_dump($this->config);
 }
开发者ID:renyuer,项目名称:www.ci.me,代码行数:7,代码来源:News.php


示例2: __construct

 /**
  * Class constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     // load models
     $this->load->model('Html');
     $this->load->model('Session');
 }
开发者ID:zsebtanar,项目名称:zsebtanar_v4,代码行数:12,代码来源:View.php


示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model("Empleados_model");
     $this->load->model("Departamentos_model");
     $this->load->library('form_validation');
 }
开发者ID:thewalox,项目名称:mantenimiento,代码行数:7,代码来源:empleados.php


示例4:

 function __construct()
 {
     parent::__construct();
     $this->load->helper('form');
     $this->load->library('form_validation');
     $this->load->library('session');
 }
开发者ID:anggaAde,项目名称:beasiswa,代码行数:7,代码来源:c_inputdata.php


示例5: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     remove_featured_if_expired();
     $this->PER_PAGE = get_per_page_value();
     #defined in auth helper
     $this->active_theme = get_active_theme();
     $this->load->model('show_model');
     $this->load->model('user/user_model');
     $this->load->library('encrypt');
     $this->load->helper('text');
     $this->output->enable_profiler($this->config->item('debug_site'));
     if (isset($_POST['view_orderby'])) {
         $this->session->set_userdata('view_orderby', $this->input->post('view_orderby'));
     }
     if (isset($_POST['view_ordertype'])) {
         $this->session->set_userdata('view_ordertype', $this->input->post('view_ordertype'));
     }
     $system_currency_type = get_settings('realestate_settings', 'system_currency_type', 0);
     if ($system_currency_type == 0) {
         $system_currency = get_currency_icon(get_settings('realestate_settings', 'system_currency', 'USD'));
     } else {
         $system_currency = get_settings('realestate_settings', 'system_currency', 'USD');
     }
     $this->session->set_userdata('system_currency', $system_currency);
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger">', '</div>');
 }
开发者ID:ageo80,项目名称:test,代码行数:29,代码来源:show_core.php


示例6:

 function __construct()
 {
     parent::__construct();
     $this->load->model('database');
     $this->load->helper('url');
     $this->load->library('tank_auth');
 }
开发者ID:jatin-github,项目名称:psycho_store,代码行数:7,代码来源:account.php


示例7: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     $this->active_theme = get_active_theme();
 }
开发者ID:Ripudamangithub,项目名称:donopen,代码行数:7,代码来源:show404_core.php


示例8: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->helper('url');
     $this->load->database();
     $this->load->model('Opleiding_model');
 }
开发者ID:iChristiaan,项目名称:Werkverantwoording,代码行数:7,代码来源:Opleiding.php


示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('Candidatos_model');
     $this->load->library('form_validation');
     $this->load->helper('text');
 }
开发者ID:thewalox,项目名称:electionsys,代码行数:7,代码来源:candidatos.php


示例10:

 function __construct()
 {
     parent::__construct();
     $this->load->model('serverP_model', '', TRUE);
     $this->load->library("nuSoap_lib");
     $this->nusoap_server = new soap_server();
     $this->nusoap_server->configureWSDL("urn:servidor");
 }
开发者ID:ElbersonConceicao,项目名称:TCC_IFMT_2015,代码行数:8,代码来源:nusoapserver.php


示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $login = $this->session->userdata('is_login');
     if (!isset($login) || $login == "") {
         redirect("");
     }
 }
开发者ID:keykurniawan,项目名称:sikomper,代码行数:8,代码来源:rules_management.php


示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('schedule_model');
     $this->load->model('duty_model');
     $this->load->model(array('twilio_model', 'sysconf_model'));
     $this->load->helper('site_helper');
 }
开发者ID:anupkelkar02,项目名称:FSM,代码行数:8,代码来源:duty_cronjob.php


示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('payment_model');
     $this->load->model('users_model');
     $this->load->library('session');
     $this->load->helper('cookie');
 }
开发者ID:leyuan,项目名称:ViewPal,代码行数:8,代码来源:ajax.php


示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model("Solicitudes_model");
     $this->load->model("Maquinas_model");
     $this->load->model("Empleados_model");
     $this->load->library('form_validation');
     $this->load->library('pdf');
 }
开发者ID:thewalox,项目名称:mantenimiento,代码行数:9,代码来源:solicitudes.php


示例15:

 function __construct()
 {
     parent::__construct();
     /* Standard Libraries */
     $this->load->database();
     $this->load->dbutil();
     $this->load->helper('download');
     /* ------------------ */
 }
开发者ID:mark51090,项目名称:app-restauran,代码行数:9,代码来源:respaldo_bd.php


示例16: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->library("session");
     $this->load->library("facebook", array('appId' => '490769621090935', 'secret' => '7bfffaf7bc5cff3c4d7a2ce29f270b0d'));
     $this->uid = $this->facebook->getUser();
     $this->access_token = $this->facebook->getAccessToken();
     $this->facebook->setAccessToken($this->access_token);
 }
开发者ID:printzard,项目名称:RAHOTAN,代码行数:9,代码来源:auth.php


示例17: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model("notifications_model", "n_model");
     // $this->load->driver("session");
     if (isset($this->session->token) == true) {
         redirect(base_url(), "refresh");
     }
 }
开发者ID:oscarsmartwave,项目名称:l45fbl45t,代码行数:9,代码来源:Notifications.php


示例18: __construct

 public function __construct()
 {
     parent::__construct();
     is_installed();
     #defined in auth helper
     //$this->PER_PAGE = get_per_page_value();#defined in auth helper
     $this->PER_PAGE = get_settings('business_settings', 'posts_per_page', 6);
     $this->active_theme = get_active_theme();
     $this->load->model('review_model');
     $this->form_validation->set_error_delimiters('<div class="alert alert-danger">', '</div>');
 }
开发者ID:GiovanniV,项目名称:Santa-Barbara-Business-Directory,代码行数:11,代码来源:review_core.php


示例19: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('www/lead_model', 'lead');
     $this->load->model('www/user_model', 'user');
     $this->load->model('www/objects_model', 'objects');
     $this->load->model('admin/obj_model', 'obj');
     $this->load->model('admin/format_model', 'format');
     $this->load->model('admin/attr_model', 'attr');
     $this->load->model('admin/org_model', 'org');
 }
开发者ID:aslijiasheng,项目名称:jasongo,代码行数:11,代码来源:api.php


示例20: __construct

 public function __construct()
 {
     parent::__construct();
     $admin_userdata = $this->session->userdata(APP_PFIX . 'admin');
     if (!$admin_userdata['logged_in_admin']) {
         $this->session->set_flashdata('errorlogin', "You must log in!");
         redirect('login/index');
     }
     $this->load->library('gcacl');
     $this->load->model('employee_m');
     $this->load->model('rbac/rbacmodel');
 }
开发者ID:Davincier,项目名称:epayroll,代码行数:12,代码来源:employee.php



注:本文中的CI_controller类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP CI_model类代码示例发布时间:2022-05-23
下一篇:
PHP CI_Xmlrpc类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap