當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CI_controller類代碼示例

本文整理匯總了PHP中CI_controller的典型用法代碼示例。如果您正苦於以下問題:PHP CI_controller類的具體用法?PHP CI_controller怎麽用?PHP CI_controller使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了CI_controller類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


注:本文中的CI_controller類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。