Thanks for the quick reply, i could swear that on my Windows laptop it was throwing a error requiring those ' ' around the parameter, but on my linux box i tested and indeed it works... I'll see later again on windows, don't think tho that the environment should matter really... I'll report if it bugs on windows..
Thanks again. On May 26, 2:03 pm, Christophe COEVOET <s...@notk.org> wrote: > 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