I’ve made a Twig Extension with some filters and need to call a function with the argument being another function or a filter but it does not output correctly, the argument gets outputed outside of the function call.
for instance:
{% set clean_url = current_url|NoQuery %}
{{ BeginPostForm(clean_url) }}
or
{{ BeginPostForm(URL()) }}
this outputs first the function argument and then the function output as if the default argument was passed. ( ie : /blog/welcome instead of <form action=’/blog/welcome’> )
Thanks in advance.
I found the error, I was doing echo instead of return on my Twig_Extension functions, that’s why it was behaving badly.