[eluser]Skoobi[/eluser]
Hi I've created a config file for my site items like the site name site email and so on but i want to try and store them in the database and have the config file load them from there.
At the moment i have my config file my_config.php :
Code:
$config['site_name'] = 'My CMS';
$config['site_email'] = '';
$config['display_members'] = true;
$config['display_registration'] = true;
but what i want to do is pull it from the database so it comes as an array.
Code:
$config['site_name'] = $settings['site_name'];
$config['site_email'] = $settings['site_email'];
$config['display_members'] = $settings['login_link'];
$config['display_registration'] = $settings['register_link'];
Is there a way i can do this like i do in the controllers???
Cheers
Chris