From: David T. <tom...@us...> - 2011-02-11 16:18:31
|
I agree that reading an .ini at install/upgrade/reset would be better than storing in the DB. Certainly not reading DB and ini on every use of the values. Cheers Date: Fri, 11 Feb 2011 15:56:09 +0000 Subject: Re: [Tsheetx-developers] Who's actively working on the TSNG system? From: sco...@gm... To: tom...@us... CC: tsh...@li... Yes, I've given some thought to default entries, as well as the potential issues when items that are supposed to exist don't. It could be handled by putting the defaults into an .ini type file, and we could just load the defaults from the ini file before we then over write them with info from the database, that would help ensure that missing configuration items from the database wouldn't necessarily break the application. I'm not convinced this is a good idea because that would mean the application would have to read configuration data from two places with every page load. And if some admin is dumb enough to delete configuration stuff out of the database, they deserve to have the app break on them :-) But, putting that info in an .ini file, we could then still have the "revert to default" buttons on the configuration page, and if needed, we could then load that info from the .ini file. Or we could have default entries in the database itself. I'm kinda leaning toward the ini file though. -Scott |