Welcome Guest, Not a member yet? Register   Sign In
Get config item in array
#5

[eluser]vbsaltydog[/eluser]
Why not just do what the documentation says to do?

Quote:If you need to load multiple config files normally they will be merged into one master config array. Name collisions can occur, however, if you have identically named array indexes in different config files. To avoid collisions you can set the second parameter to TRUE and each config file will be stored in an array index corresponding to the name of the config file. Example:

// Stored in an array with this prototype: $this->config['blog_settings'] = $config
Code:
$this->config->load('blog_settings', TRUE);

Quote:// Retrieve a config item named site_name contained within the blog_settings array
Code:
$site_name = $this->config->item('site_name', 'blog_settings');

http://ellislab.com/codeigniter/user-gui...onfig.html


Messages In This Thread
Get config item in array - by El Forum - 02-03-2012, 09:11 AM
Get config item in array - by El Forum - 02-03-2012, 09:30 AM
Get config item in array - by El Forum - 02-03-2012, 12:18 PM
Get config item in array - by El Forum - 02-03-2012, 04:17 PM
Get config item in array - by El Forum - 02-03-2012, 06:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB