Welcome Guest, Not a member yet? Register   Sign In
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




Theme © iAndrew 2016 - Forum software by © MyBB