symfony - twig path syntax for multiple variables -


does know correct syntaxe path (in twig) multiple variables.

i know how 1 variable more 1 cannot find syntax explanation/document.

here 1 variable: (but more one... variable1_name = article_id , variable2_name = language)

  <li><a href="{{ path('routename', {'variable1_name': variable1_value}) }}"></a></li> 

thanks

list them commas in between:

<li><a href="{{ path('routename', {'variable1_name': variable1_value, 'variable2_name': variable2_value, 'variable3_name': variable3_value}) }}"></a></li> 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -