Closed mathieu-gilloots closed 7 years ago
Hi @mathieu-gilloots
do you know if it breaks BC with twig1 ?
thanks,
@acidjames Normally works with twig 1
From the twig 1x documentation, importing _self is the correct way to do https://twig.sensiolabs.org/doc/1.x/tags/macro.html
So this PR has been merged and thanks for contributing,
Cheers, James
You're welcome :)
In Twig 2.* I've an error :
Impossible to invoke a method ("input") on a string variable ("LexikPayboxBundle:Macro:paybox.html.twig").
Apparantly in v2, twig calls to _self directly give a string ""LexikPayboxBundle:Macro:paybox.html.twig" instead a twig template object.
@lexikteam