Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

how to use the function mb_substr in volt???

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.



15.4k
Accepted
answer

You have also it in the documentation :

http://docs.phalconphp.com/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');