0

I've been reading Phalcon template engine documentation and so far I couldn't find a filter for currency. Do it exist in volt engine? If not, how can I create one?

Thanks for any help!

André Luiz
  • 6,642
  • 9
  • 55
  • 105
  • It's in docs how to add filters - https://docs.phalconphp.com/en/latest/reference/volt.html#id2 – Juri Aug 26 '16 at 18:28
  • @Juri do you know where exactly I create the class and how to include it? – André Luiz Aug 26 '16 at 18:43
  • 1
    Yesterday another user had similar question, it was about volt functions, but filters are almost identical syntax. However you have to write the custom logic for currency conversions. The topic: https://stackoverflow.com/questions/39148199/phalcon-volt-array-is-of-string-type – Nikolay Mihaylov Aug 26 '16 at 19:13
  • You don't have to add class, just in service definition you have to add new filter to compiler. – Juri Aug 26 '16 at 19:47
  • Possible duplicate of [Phalcon PhP - Unkown filter](http://stackoverflow.com/questions/39175399/phalcon-php-unkown-filter) – Timothy Aug 27 '16 at 08:40

0 Answers0