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???


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.


You have also it in the documentation :

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');