本文整理汇总了PHP中CI_Config::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP CI_Config::__construct方法的具体用法?PHP CI_Config::__construct怎么用?PHP CI_Config::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CI_Config
的用法示例。
在下文中一共展示了CI_Config::__construct方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
/**
* Constructor
*
* @access public
* @return void
*/
function __construct()
{
parent::__construct();
$this->config_path = APPPATH . 'config/config' . EXT;
$this->database_path = APPPATH . 'config/database' . EXT;
$this->autoload_path = APPPATH . 'config/autoload' . EXT;
}
示例2: __construct
/**
* Constructor
*
*/
public function __construct()
{
parent::__construct();
// Change this path before release.
$this->config_path = APPPATH . 'config/config' . EXT;
$this->database_path = APPPATH . 'config/database' . EXT;
$this->_initialize();
}
示例3: switch
/**
* Constructor
*
* @access public
* @return void
*/
function __construct()
{
parent::__construct();
$define_path = "";
if (defined('ENVIRONMENT')) {
switch (ENVIRONMENT) {
case 'development':
$this->define_path = APPPATH . 'config/development/database' . EXT;
break;
case 'testing':
case 'production':
$this->define_path = APPPATH . 'config/production/database' . EXT;
break;
default:
exit('The application environment is not set correctly.');
}
}
$this->config_path = APPPATH . 'config/config' . EXT;
$this->database_path = $this->define_path;
$this->autoload_path = APPPATH . 'config/autoload' . EXT;
$tem_index = getcwd();
$this->index_path = $tem_index . "/index.php";
}
示例4:
function __construct()
{
parent::__construct();
}
示例5: array
function __construct()
{
parent::__construct();
$this->_config_paths = array(APPPATH, ARCHPATH);
}
示例6: __construct
public function __construct()
{
parent::__construct();
log_message('debug', 'Plain_Config Class Initialized');
}
示例7: define
function Config_data()
{
parent::__construct();
$CI =& get_instance();
define("THEME_FOLDER", "templates/blue");
}
示例8: __construct
/**
* Constructor
*
* Override the CI_Config constructor and add local path to config paths
*/
public function __construct()
{
parent::__construct();
$this->_config_paths = array(LOCALAPPPATH, APPPATH);
log_message('debug', 'CI_Config Class Initialized');
}
示例9: __construct
/**
* Constructor
*
*/
public function __construct()
{
parent::__construct();
//2008-04-21 KUNIHARU Tsujioka
$this->_is_ssl();
}
示例10:
function __construct()
{
parent::__construct();
global $URI;
}