当前位置: 首页>>代码示例>>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;未经允许,请勿转载。