public function item($item, $index = '') { if ($index == '') { return isset($this->config[$item]) ? $this->config[$item] : NULL; } return isset($this->config[$index], $this->config[$index][$item]) ? $this->config[$index][$item] : NULL; }
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; }