Welcome Guest, Not a member yet? Register   Sign In
Opinion: Where to store site settings, meta, social, etc...
#1

[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
#2

[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.
#3

[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.
#4

[eluser]jjmax[/eluser]
Thanks guys,

This is exactly the kind of feedback I wanted.

Much appreciated Smile




Theme © iAndrew 2016 - Forum software by © MyBB