本文整理汇总了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;
}
示例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();
}
示例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");
}
示例4: define
/**
* Constructor. Define SPARKPATH if it doesn't exist, initialize parent
*/
function __construct()
{
if (!defined('SPARKPATH')) {
define('SPARKPATH', APPPATH . 'sparks/');
}
parent::__construct();
}
示例5: __construct
/**
* Class constructor method
*/
public function __construct()
{
parent::__construct();
$this->config('loader', TRUE);
$this->_initialize();
log_message('info', __CLASS__ . ' Class Initialized');
}
示例6: define
function __construct()
{
if (!defined('SPARKPATH')) {
define('SPARKPATH', 'sparks/');
}
$this->_ci_events_paths = array(APPPATH);
parent::__construct();
}
示例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);
}
示例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();
}
示例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();
}
示例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);
}
示例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');
}
示例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');
}
示例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));
}
示例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);
}
示例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);
}
}