Yo should set the currency on the CakeTime class as this is the clear
dealing with defaults first (e.g. via bootstrap or
AppController::beforeFilter etc)
The helper will inherit it automatically in the view layer.
Am Montag, 4. März 2013 18:37:24 UTC+1 schrieb NikNik:
>
> Hello
> how can I set the defaultCurrency app wide?
> Or how to use setLocale
>
> tried to put random code in AppController beforeFilter
> with no success
>
>
> I tried also setlocale(LC_MONETARY, 'Italian_Italy.1252', 'ita_ita',
> 'it_IT');
> or
> TimeHelper::defaultCurrency('EUR');
>
> Sorry, I'm a newbie :-(
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.