Welcome Guest, Not a member yet? Register   Sign In
Load in Config from database
#1

[eluser]Yash[/eluser]
I want to load some settings from database into config file.

I've a file blog_settings in config folder.Now I want to load this below code and pass a array to my config file.
any idea how to do that?

Code:
$query = $this->db->get('generalsettings');
$config = $query->result_array();
return $config;

you can't load run db query in blog_settings file.

You need super CI object i guess but I don't want to use that.


Messages In This Thread
Load in Config from database - by El Forum - 07-28-2008, 12:50 AM
Load in Config from database - by El Forum - 07-28-2008, 11:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB