[eluser]mdvaldosta[/eluser]
Created a file named MY_Config.php and placed inside the application/libraries folder:
Code:
class MY_Config extends CI_Config {
function get($name)
{
$this->CI =& get_instance();
$query = $this->CI->db->get_where('config', array('name' => $name));
$result = $query->row_array();
return $result['value'];
}
}
and it will not work when I call from a controller:
Code:
$this->config->get('whatever')
The above code WILL work if I name the file/class something else and load it as a library, however I'd rather extend the default config class since it autoloads. What am I missing here?
I'm getting a fatal error, undefined method CI_Config::get()