We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 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).


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


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 :)