php - Using a Twig variable inside the 'use' tag -
php - Using a Twig variable inside the 'use' tag -
i want dynamically utilize twig template, reason can't work.
when add together line, page crashes:
{%  utilize current_page %}    current_page set "birthday.twig", exists.
as twig documentation states:
because utilize statements resolved independently of context passed template, template reference cannot expression.
so unfortunately not possible have variable {%  utilize xyz %} statement.
however, can include using variable. see http://twig.sensiolabs.org/doc/recipes.html
 php twig 
 
  
Comments
Post a Comment