CodeIgniter Forums
Need clarifications and ideas about config files - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Need clarifications and ideas about config files (/thread-36405.html)



Need clarifications and ideas about config files - El Forum - 11-30-2010

[eluser]JoeDRL[/eluser]
Hello all,

I need a little bit of clarification on CI's config class.
It sais on the user_guide that using
Code:
config->set_item()
will dynamically update that configuration but it is only for the time of the execution script? It's a little bit confusing in the user guide.

Then, knowing that, how do you guys manage real configuration files, that you can modify with a script?
(An exemple of this would be creating a page for the administrator to deactivate registration to the site.)

I think using a database table for the different configurations would be a pain in the ass for that purpose.

I must admit that I'm quite disappointed as I thought the config class was exactly made for that.

Thank you,
JoeDRL


Need clarifications and ideas about config files - El Forum - 11-30-2010

[eluser]InsiteFX[/eluser]
Use a settings table in the database.

InsiteFX