On Feb 8, 2008, at 3:33 PM, johnnyice wrote:
> > this may be more of a design/convention question, but I was curious as > to when other bakers decide to add a configuration variable to Cake's > Configure over DEFINE (of course both would probably be done in / > config/core.php) Depends on whether or not you want it to be constant (unchangeable), or something you can play with during a request. > I have a couple default values I'd like to set. For example I want to > set a date field in the db to the current GMT time or I have an > initial state for user activity that only changes once they login. > > Say the default state for user activity is 5 (some arbitrary num). > Would you put that in config, define, or database? > What about a default date (say gmnow() that you can't use as a default > in the db) Depends how much it'll change and when. fwiw, John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
