Welcome Guest, Not a member yet? Register   Sign In
Global Variables from database
#3

[eluser]tonanbarbarian[/eluser]
use the CI config class
It loads by default so you do not need to preload it
and you can not only read config options you can write them

Setting a Config Item

I would just build an array of values and then set them. Make sure the values are indexed by the keys of the data in the database I guess.


Messages In This Thread
Global Variables from database - by El Forum - 01-11-2008, 12:03 PM
Global Variables from database - by El Forum - 01-11-2008, 02:15 PM
Global Variables from database - by El Forum - 01-11-2008, 03:17 PM
Global Variables from database - by El Forum - 01-11-2008, 05:32 PM
Global Variables from database - by El Forum - 01-12-2008, 04:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB