04-14-2012, 02:12 PM
[eluser]Aken[/eluser]
Config file names must match the library you're loading if you want them to autoload from the config directory. Loading them through the Config class won't do anything except make the options available through $this->config->item() or config_item().
Your solution is the right way to do it. When you load the class, it will automatically pull a config file if it finds one. Then, you can use initialize() after that to add / override any options.
Config file names must match the library you're loading if you want them to autoload from the config directory. Loading them through the Config class won't do anything except make the options available through $this->config->item() or config_item().
Your solution is the right way to do it. When you load the class, it will automatically pull a config file if it finds one. Then, you can use initialize() after that to add / override any options.