10-26-2007, 10:34 PM
|
#5 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 1,381
Thanks: 5
|
To further elaborate on some points raised already, there are a few different meanings to "settings" which I feel should be treated in different ways.
There are system settings -- things which affect how and if the system itself will work. This includes things like DB connection details usually. As Wildhoney mentioned, it would be nice to have a HTML form which writes to a (PHP) file storing these important and necessary settings. Without these, the system cannot access the second type: application settings.
The application in your case is the CMS which I've no doubt has a whole bunch of settings which you'd like to store such as the working site's name, URL, theme choices, file storage locations, etc. I think this second type of settings is better located inside the database rather than in specific configuration files -- it's all part of the data associated with your web application and should be stored as such.
You'll notice (if you decide in the future to dig into them) that many apps follow this type of approach including Wordpress to name one. That said, there are many which choose other ways of doing things so all of this is merely one suggestion of a way to handle it. :)
|
|
|
|