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.

add volt function don't work


why this code don't work???

    $volt->getCompiler()->addFunction('getBtCancelBack', function () {
        return  'hi';

and calling in the volt file:

{{ getBtCancelBack() }}

I don't get the error message, the browser show only "the page cannot be shown". without php errors also.

php 5.5

phalcon 1.3.3 (tested on 1.3.2 also)

apache 2.4


Are you using xdebug?

yes, but I can't identify the problem

xdebug crashes while running in this case


three days trying to solve this...

thanks so much