Le 25/05/2011 18:37, xaben a écrit :
Hello all,
i want to replace the 'my-blog-post' part with a variable in Twig. And
i am not sure how to do it.
From:
<a href="{{ path('blog_show', { 'slug': 'my-blog-post' }) }}">
Read this blog post.
</a>
to something like:
<a href="{{ path('blog_show', { 'slug': variable }) }}">
Read this blog post.
</a>
Can anyone please help?
Thank you.
the code you suggested works. It is the solution.
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en