Welcome Guest, Not a member yet? Register   Sign In
autoload config with "second parameter"
#1

Hi,
is it possible to autoload a config file with a second parameter set to TRUE, like it is possible in the manual way :

$this->config->load('blog_settings', TRUE);
see http://www.codeigniter.com/userguide3/li...al-loading

thanks !
Reply
#2

Reading the user guide, you can
$this->config->load('blog_settings', TRUE);

and you would then reference those config items using
$site_name = $this->config->item('site_name', 'blog_settings');
Reply
#3

(04-10-2015, 02:24 PM)ciadmin Wrote: Reading the user guide, you can
$this->config->load('blog_settings', TRUE);

and you would then reference those config items using
$site_name = $this->config->item('site_name', 'blog_settings');

thanks, but I'm talking about adding the config file in the autoload.php file.

$autoload['config'] = array( '' );
I would like to write :

$autoload['config'] = array( array('blog_settings', TRUE) );

but that doesn't work.

Could be a good feature ?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB