We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Currency Formatting (Template)

Hi There,

I have tried formatting currency and it works:

{{value | currency}}

But this one automatically adds the dollar sign. How do I remove the dollar sing since I need to use different currencies? I am not using VOLT templating by the way, just the regular PHP one (phtml).

Thanks,

Where did you get that filter currency from? I can't find it in the official docs.



9.5k

My mistake. I got it mixed up between Phalcon and AngularJS. No wonder I was not able to find the answer in Phalcon. I just realised it after asking. :D

Silly mistakes, we all fall for them! Glad you solved it :)