• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load two config file in one controller

#1
Can i load 2 config file in one controller in the construct simultaneously?
Reply

#2
Simultaneously implies at the same moment and you cannot do anything "at the same moment" in PHP.

But you can load multiple config files, it just has to be done one at a time.
For example:

$this->config->load('some_config');
$this->config->load('other_config');

Read the Config Class documentation for loads of ways to use config files.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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