looks like you put global constants in the bootstrap.php file. ------------------ This file is ideal for a number of common bootstrapping tasks: 1. Defining convenience functions 2. Registering global constants 3. Defining additional model, view, and controller paths ------------------ from: http://tempdocs.cakephp.org/#TOC42845
BUT for variables like the number of search results per page. Would you put that in your bootstrap file too or as a design preference add it to the Configure namespace? john On Feb 8, 2:33 pm, johnnyice <[EMAIL PROTECTED]> 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) > > 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) > > Interested in hearing what you all think... > > 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 -~----------~----~----~----~------~----~------~--~---
