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


PHP CI_Loader::__construct方法代碼示例

本文整理匯總了PHP中CI_Loader::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP CI_Loader::__construct方法的具體用法?PHP CI_Loader::__construct怎麽用?PHP CI_Loader::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CI_Loader的用法示例。


在下文中一共展示了CI_Loader::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Check & Set URI resource to determine the side of application
  *
  */
 public function __construct()
 {
     parent::__construct();
     $uri =& load_class('URI', 'core');
     $admin = $uri->segment(1);
     $this->is_admin = $admin == 'administrator' || $admin == 'admin' ? true : false;
 }
開發者ID:NaszvadiG,項目名稱:bootigniter,代碼行數:11,代碼來源:AZ_Loader.php

示例2: __construct

 public function __construct()
 {
     $this->_ci_library_paths = array(PATH_APP, PATH_APPS, PATH_SYSTEM);
     $this->_ci_helper_paths = array(PATH_APP, PATH_APPS, PATH_SYSTEM);
     $this->_ci_view_paths = array(VIEWPATH => TRUE, MODULES_DIR => TRUE);
     parent::__construct();
 }
開發者ID:skubbs-chuck,項目名稱:emr,代碼行數:7,代碼來源:MY_Loader.php

示例3: __construct

 /**
  * Constructor
  *
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
     $this->_ci_service_paths = array(APPPATH);
     $this->_ci_services = array();
     log_message('debug', "MY_Loader Class Initialized");
 }
開發者ID:snamper,項目名稱:CI_xiaoshuhaochi,代碼行數:12,代碼來源:My_Loader.php

示例4: define

 /**
  * Constructor. Define SPARKPATH if it doesn't exist, initialize parent
  */
 function __construct()
 {
     if (!defined('SPARKPATH')) {
         define('SPARKPATH', APPPATH . 'sparks/');
     }
     parent::__construct();
 }
開發者ID:jayalfredprufrock,項目名稱:codeigniter-boilerplate,代碼行數:10,代碼來源:MY_Loader.php

示例5: __construct

 /**
  * Class constructor method
  */
 public function __construct()
 {
     parent::__construct();
     $this->config('loader', TRUE);
     $this->_initialize();
     log_message('info', __CLASS__ . ' Class Initialized');
 }
開發者ID:versalle88,項目名稱:CodeIgniter-Base-Loader,代碼行數:10,代碼來源:MY_Loader.php

示例6: define

 function __construct()
 {
     if (!defined('SPARKPATH')) {
         define('SPARKPATH', 'sparks/');
     }
     $this->_ci_events_paths = array(APPPATH);
     parent::__construct();
 }
開發者ID:sherdog,項目名稱:wntools,代碼行數:8,代碼來源:MY_Loader.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     # -- Loading libraries, helpers and modules from SHAREDPATH
     $this->_ci_library_paths = array(SHAREDPATH, BASEPATH);
     $this->_ci_helper_paths = array(SHAREDPATH, BASEPATH);
     $this->_ci_model_paths = array(SHAREDPATH);
 }
開發者ID:aidou-com,項目名稱:CodeIgniter-Multi-Apps,代碼行數:8,代碼來源:MY_Loader.php

示例8: define

 /**
  * Constructor. Define SPARKPATH if it doesn't exist, initialize parent
  */
 function __construct()
 {
     if (!defined('SPARKPATH')) {
         define('SPARKPATH', 'sparks/');
     }
     $this->_is_lt_210 = is_callable(array('CI_Loader', 'ci_autoloader')) || is_callable(array('CI_Loader', '_ci_autoloader'));
     parent::__construct();
 }
開發者ID:nathanaelito,項目名稱:clickbuena_ci,代碼行數:11,代碼來源:MY_Loader.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     self::$APP = get_instance();
     self::$APP->config = new MX_Config();
     self::$APP->lang = new MX_Language();
     $this->_module = self::$APP->router->fetch_module();
 }
開發者ID:netfreak,項目名稱:pyrocms,代碼行數:8,代碼來源:MY_Loader.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     /* set the module name */
     $this->_module = CI::$APP->router->fetch_module();
     /* add this module path to the loader variables */
     $this->_add_module_paths($this->_module);
 }
開發者ID:Rudianasaja,項目名稱:codeigniter-hmvc,代碼行數:8,代碼來源:Loader.php

示例11: __construct

 /**
  * Constructor
  *
  * Sets the path to the view files
  *
  * @return	void
  */
 public function __construct()
 {
     parent::__construct();
     $this->_ci_library_paths = array(LOCALAPPPATH, APPPATH, BASEPATH);
     $this->_ci_helper_paths = array(LOCALAPPPATH, APPPATH, BASEPATH);
     $this->_ci_model_paths = array(LOCALAPPPATH, APPPATH);
     log_message('debug', 'TOC_Loader Class Initialized');
 }
開發者ID:colonia,項目名稱:tomatocart-v2,代碼行數:15,代碼來源:TOC_Loader.php

示例12:

 /**
  * Constructor
  *
  */
 function __construct()
 {
     // Call the Loader Constructor
     parent::__construct();
     // Create an instance to CI
     $CI =& get_instance();
     // Load the Widget model
     $this->model('Widgets_model', 'widgets');
 }
開發者ID:BsWiM,項目名稱:The-Clan-CMS-Project,代碼行數:13,代碼來源:ClanCMS_Loader.php

示例13: __construct

 /**
  * Constructor
  *
  * Add the current module to all paths permanently
  */
 public function __construct()
 {
     parent::__construct();
     // Get current module from the router
     $router =& $this->_ci_get_component('router');
     $this->module = $router->getModule()->add($this);
     // Load base views
     $this->library('base::Views', array($this->module));
 }
開發者ID:bootigniter,項目名稱:project,代碼行數:14,代碼來源:Loader.php

示例14: __construct

 /**
  * CORE LOAD CONSTRUCTOR
  *
  * Assigns all CI paths to allow common functionality
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->_ci_library_paths = array(APPPATH, COMMONPATH, BASEPATH);
     $this->_ci_helper_paths = array(APPPATH, COMMONPATH, BASEPATH);
     $this->_ci_model_paths = array(APPPATH, COMMONPATH);
     $this->_ci_view_paths = array(APPPATH . 'views/' => TRUE, COMMONPATH . 'views/' => TRUE);
     $this->config->_config_paths = array(COMMONPATH, APPPATH);
 }
開發者ID:jaffarsolo,項目名稱:starter-public-edition-4,代碼行數:15,代碼來源:Loader.php

示例15: __construct

 /**
  * Constructor
  *
  * Add the current module to all paths permanently
  */
 public function __construct()
 {
     parent::__construct();
     // Get current module from the router
     $router =& $this->_ci_get_component('router');
     if ($router->module) {
         $this->add_module($router->module);
     }
 }
開發者ID:sastrylal,項目名稱:tingting,代碼行數:14,代碼來源:Loader.php


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