• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
configuration of any file

#9
[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.


Messages In This Thread
configuration of any file - by El Forum - 04-14-2012, 08:06 AM
configuration of any file - by El Forum - 04-14-2012, 08:23 AM
configuration of any file - by El Forum - 04-14-2012, 08:27 AM
configuration of any file - by El Forum - 04-14-2012, 08:29 AM
configuration of any file - by El Forum - 04-14-2012, 08:38 AM
configuration of any file - by El Forum - 04-14-2012, 09:01 AM
configuration of any file - by El Forum - 04-14-2012, 09:25 AM
configuration of any file - by El Forum - 04-14-2012, 01:51 PM
configuration of any file - by El Forum - 04-14-2012, 02:12 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.