I want to write this:
{{ path('article_show', { 'slug': article.slug }) }}
but for a internal link, like:
<a href="#ID_name">...</a>
in html, and also by passing one o more parameters.
I use Twig in one Symfony 4 proyect.
I want to write this:
{{ path('article_show', { 'slug': article.slug }) }}
but for a internal link, like:
<a href="#ID_name">...</a>
in html, and also by passing one o more parameters.
I use Twig in one Symfony 4 proyect.
You can pass as many arguments as you want, like array
:
{{ path('article_show', {'slug': article.slug, 'param': article.param, ...}) }}