CodeIgniter Forums
Opinion: Where to store site settings, meta, social, etc... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Opinion: Where to store site settings, meta, social, etc... (/thread-57540.html)



Opinion: Where to store site settings, meta, social, etc... - El Forum - 03-21-2013

[eluser]jjmax[/eluser]
Hi,

I'm building a simple site for a client. Everything is going good but I can't decide on where to store the settings for the site.

I want to store:
Analytics code
Webmaster meta
Site description
Site title
Contact info

I've been flip flopping between doing this in a config file or doing it in the DB.

What do you think? What do you do?

Thanks,
John


Opinion: Where to store site settings, meta, social, etc... - El Forum - 03-22-2013

[eluser]Harold Villacorte[/eluser]
Since CodeIgniter makes it so easy to cache results I don't see any reason not to store settings in the database.


Opinion: Where to store site settings, meta, social, etc... - El Forum - 03-22-2013

[eluser]CroNiX[/eluser]
I store those things in the db so the owner can edit them on their own from a simple form instead of having to edit php files, of which they know nothing about... Too many potential problems with non php people editing files. I don't want them to access the raw files anyway.


Opinion: Where to store site settings, meta, social, etc... - El Forum - 03-24-2013

[eluser]jjmax[/eluser]
Thanks guys,

This is exactly the kind of feedback I wanted.

Much appreciated Smile