hi to all.
currently we can specify route as annotation like
* @Route("/{company}/{location}/{id}/{position}", name="job_show",
defaults={"company"="noname", "location"="undefined",
"position"="undefined"} )
and in the template it will be like
<a href="{{ url('job_show', { 'company' : job.companySlug, 'location':
job.locationSlug, 'id' : job.id, 'position': job.positionSlug }) }}">
{{ job.position }}
</a>
in sf1.4 we was been able to specify same thing like
<?php echo link_to($job->getPosition(), 'job_show_user', $job) ?>
is here any way to specify routes same way in Symfony2?
or at least something like
<a href="{{ url('job_show', { 'job' : job }) }}">{{ job.position }}</a>
i understand that here is no any sense to couple routing sub-system with
other parts as it can be used standalone.
but maybe here can be some standard way to specify object for route, and
route will fill parameters from object?
--
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