But, if you're doing language-specific stuff, you'd be *far* off
creating .po files and putting them in the locale dir.
On Sun, Feb 1, 2009 at 8:09 AM, Turgs <timb.php@gmail.com> wrote:
>
> Hi everyone.
>
> If I want to use constants within my model code and have those the
> constants defined within a separate file (i.e. /
> english_constants.php), where can I call require_once('constants.php)
> so that my "whole" application (models, views and controllers) can see
> those constants?
>
> If I put it in the AppController::beforeFilter(), the constants don't
> seem to be available within the model.
>
> Thanks
> Turgs
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment