Hi!!!
How to use the function mb_substr in volt?? Created a filter, as stated in the documentation, but it does not work. function also does not work.
Here's an example that works https://forum.phalcon.io/discussion/419/volt-extending
You have also it in the documentation :
https://docs.phalcon.io/en/latest/reference/volt.html#extending-volt
then you would do :
// add it as a function : $compiler->addFunction('mb_substr', 'mb_substr'); // add it aas a filter : $compiler->addFilter('mb_substr', 'mb_substr');