How do you allow for site preferences? |
[eluser]jdfwarrior[/eluser]
[quote author="Phil Sturgeon" date="1246966268"]I do this in PyroCMS and it's not too bad. With a spot of DB caching and storing them results in the library object as you go (meaning two requests for site_name do not fire off too queries) I haven't really noticed an issue with speed. I spend all day working with a CMS that runs about 50 database connections and runs over 100 queries just for basic page layouts and content... I really don't think a few 1 line SELECTs are going to hurt anything. sql Code: CREATE TABLE `settings` ( You can mostly ignore is_gui and module, they are just to stop it showing up on the interface and module is a way to break down settings into tabs. lib model Hope thats of some help.[/quote] agreed. |
Messages In This Thread |
How do you allow for site preferences? - by El Forum - 07-06-2009, 10:13 PM
How do you allow for site preferences? - by El Forum - 07-06-2009, 10:15 PM
How do you allow for site preferences? - by El Forum - 07-06-2009, 10:15 PM
How do you allow for site preferences? - by El Forum - 07-07-2009, 12:31 AM
How do you allow for site preferences? - by El Forum - 07-07-2009, 12:38 AM
How do you allow for site preferences? - by El Forum - 07-07-2009, 01:55 AM
How do you allow for site preferences? - by El Forum - 07-07-2009, 02:02 AM
How do you allow for site preferences? - by El Forum - 07-07-2009, 06:36 AM
|