I am using __() internationalization in my model as described here:
It works great, but there is one problem. I set the language of the
app in the beforefilter of the app_controller. Apparently the models
are loaded before this and so the models always return the default
language.
Where do you guys set the language of the app? Especially if you are
using the __contruct method as mentioned in the post from above.
Thanks!
Cheers,
tobi_one
--~--~---------~--~----~------------~-------~--~----~
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