• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I change an array element in the $config array from a Controller?

#4
[eluser]CroNiX[/eluser]
Changing config values via the config library does NOT write the data to the config file. It will only be changed for that request (in memory) and then get set back to the original value when the config library gets reinitialized and reloads the config files on the next request.

If you need a permanent change, or to pass the change to another server request, you'll have to extend the config library so it will write changes to the config.php file, or use sessions, or use a cookie, or create a config system using the database, or.... but the config library won't make permanent changes.


Messages In This Thread
How can I change an array element in the $config array from a Controller? - by El Forum - 09-24-2012, 11:37 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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