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; }
/** * 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; }
} } 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');