On Feb 8, 2008, at 4:49 PM, johnnyice wrote:
> > 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? You can add defines *or* Configure calls in bootstrap. Bootstrap is probably the place to do what you want. A define is probably what you want, since number of search results isn't going to change dynamically in the middle of a request. $0.02, -- 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 -~----------~----~----~----~------~----~------~--~---
