Right now I use the url_for helper like this:
url_for('news_item/news_item?slug=' . $news_item->getSlug())

As you can see, I add the object slug in the URL. But, when I want to
change the route (for example I add the object id in it), I still have
to change all url_for tags for this one:
url_for('news_item/news_item?id=' . $news_item->getId() . '&slug=' .
$news_item->getSlug())

Isn't there a way in which I can simply give the helper a full object,
and it just takes all values it needs?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to