That's perfect !
Now I just need to specify two differents slug for two differents
objects in the url.
If I use :
url: /brands/:brandSlug/car-:id-:slug.html
How can I easily pass the brandSlug in a link_to() ?
Right now, I'm using link_to like this :
link_to($car->getName(), 'car', $car);
It's a really nice way, but, how can I use another object in the
link_to() ?

Do I have to use the other syntax :
link_to($car->getName(), 'car/show?brandSlug='.$brand->getSlug
().'&id='.$car->getId().'&slug='.$car->getSlug())

Anyway, thanks for your answer ;)

???

On 8 juil, 23:19, Eno <[email protected]> wrote:
> On Wed, 8 Jul 2009, Chtipepere wrote:
> > There might be another solution, it can't be that strict, can it ?
>
> Actually, you're right (I haven't used this feature myself), see:
>
> http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Config...
>
> --
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to