Le 07/01/2011 11:25, dantleech a écrit :
in
quick_tour/the_view
it reads:
<a href="{% path 'hello' with ['name': 'Thomas'] %}">Greet Thomas!</
a>
but this didnt work for me, I changed to:
<a href="{% path 'hello' with {'name': 'Thomas'} %}">Greet Thomas!</
a>
and it worked fine, I tried to file this error in Trac:
http://trac.symfony-project.org/newticket
but couldnt find an appropriate category ... am I missing something?
The problem here is that Twig syntax changed since these doc has been
written. You should look at http://docs.symfony-reloaded.org/master/ for
the doc of the current master branch.
With the current master, the syntax is {{ path('hello', {'name':
'Thomas'}) }}
--
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 developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en