Welcome Guest, Not a member yet? Register   Sign In
SOLVED: How to set config value at startup using a function, including database query
#8

[eluser]marcopolo[/eluser]
The problem is each time you reload a page and ask for a variable

Code:
$this->config->item('variable');

you are getting the value from the file config.php (by default) even you have changed dinamically with set_item.

You need a function like write_config() to write the values into the file to get access next time you ask for them.


Messages In This Thread
SOLVED: How to set config value at startup using a function, including database query - by El Forum - 02-02-2012, 05:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB