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

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

clojure - 'get' replacement that throws exception on not found? -