• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load in Config from database

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?

$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.

why not just use the config class setter method set_item() ?

check the bottom of this manual page for details

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.