In which file should I define application-wide constants that are specific to my cakephp app?
Thanks.. the book says "This file is ideal for a number of common bootstrapping tasks... (including) registering global constants" so I guess this is the place!
Tomba
2010-10-04 20:40:50
As a side note, it doesn't have to just be constants. For example, I use a dev/staging server, and so don't always want to trigger emails on certain actions. Frequently I'll write a var in the bootstrap file that I use to switch on/off features throughout the app.
Travis Leleu
2010-10-04 21:22:14
A:
@travis:
i think its better to use the configs file (and configure class) for such dev/staging stuff
the bootstrap is more like the "general" more hardcoded stuff - all app configs together the configs are the "variant" config arrays.
just my 5 cents.
mark
2010-10-05 09:15:56