本文整理匯總了PHP中CI_Config::item方法的典型用法代碼示例。如果您正苦於以下問題:PHP CI_Config::item方法的具體用法?PHP CI_Config::item怎麽用?PHP CI_Config::item使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CI_Config
的用法示例。
在下文中一共展示了CI_Config::item方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: item
public function item($item, $index = '')
{
$config = parent::item($item, $index);
if ($config === NULL) {
if (class_exists('CI_Controller')) {
return $this->_database_config($item, $index);
}
}
return $config;
}
示例2: explode
/**
* Native PHP error handler
*
* @param string $severity the error severity
* @param string $message the error string
* @param string $filepath the error filepath
* @param string $line the error line number
*/
function show_php_error($severity, $message, $filepath, $line)
{
$severity = !isset($this->levels[$severity]) ? $severity : $this->levels[$severity];
$filepath = str_replace("\\", "/", $filepath);
/**
* For safety reasons we do not show the full file path
*/
if (FALSE !== strpos($filepath, '/')) {
$x = explode('/', $filepath);
$filepath = $x[count($x) - 2] . '/' . end($x);
}
if (ob_get_level() > $this->ob_level + 1) {
ob_end_flush();
}
include_once BASEPATH . 'core/Config' . EXT;
$config = new CI_Config();
ob_start();
include APPPATH . 'views/themes/' . $config->item('theme') . '/errors/error_php' . EXT;
$buffer = ob_get_contents();
ob_end_clean();
echo $buffer;
}
示例3: __construct
}
}
public function __construct()
{
$config = new CI_Config();
$this->app_code = $config->item('app_code');
$this->client_code = $config->item('client_code');
$this->target = $config->item('target_core');
$api = array('tes' => 'ksc/pasien/generate', 'doctype' => 'ksc/doctortypes/index', 'doctypePasien' => 'ksc/doctortypes/pasienlist', 'pasienDetail' => 'ksc/pasien/detail', 'pasienSaveMedrec' => 'ksc/pasien/savemedrec', 'logDaftar' => 'ksc/daftar/logs');