Hi :) I can answer one of your questions :

Where can I define global constants?

You can put them in app/config directory in your own file - eg.
app/config/myconstants.php and then call
config('myconstants'); which will load the file for you.

Note that you could also add your own configuration options, rather
than just constants :
In your file 'myconstants.php' put lines like $config['sheep'] =
'black';
then call Configure::load('myconstants').

The value of sheep will then be accessed by Configure::read('sheep');

Anselm


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to