[symfony-users] Re: URL transform

2009-11-03 Thread Martin Ibarra Cervantes
you can use in your routing.yml for example advertisement_show: url: /advertisement/:category class: sfRequestRoute param: {module: advertisement, action: index } requirements: id: \d+ try this, this simple, you can read the routing. http://www.symfony-project.org/book/1_2/09-Links

[symfony-users] Re: URL transform

2009-11-03 Thread Eno
On Tue, 3 Nov 2009, HAUSa wrote: > > It's not a sfPropelRoute, it has to be a request parameter. > The category id is a parameter, it is a advertisement object. > > On 3 nov, 14:23, Gábor Fási wrote: > > url: /advertisement/index/category/:id > > class: sfPropelRoute Actually ignore my last m

[symfony-users] Re: URL transform

2009-11-03 Thread Eno
On Tue, 3 Nov 2009, HAUSa wrote: > It's not a sfPropelRoute, it has to be a request parameter. > The category id is a parameter, it is a advertisement object. > > On 3 nov, 14:23, Gábor Fási wrote: > > url: /advertisement/index/category/:id > > class: sfPropelRoute Any reason you're using url_

[symfony-users] Re: URL transform

2009-11-03 Thread HAUSa
It's not a sfPropelRoute, it has to be a request parameter. The category id is a parameter, it is a advertisement object. On 3 nov, 14:23, Gábor Fási wrote: > url: /advertisement/index/category/:id > class: sfPropelRoute > > I'll leave the rest to you :P > > On Tue, Nov 3, 2009 at 12:43, HAUSa >

[symfony-users] Re: URL transform

2009-11-03 Thread Gábor Fási
url: /advertisement/index/category/:id class: sfPropelRoute I'll leave the rest to you :P On Tue, Nov 3, 2009 at 12:43, HAUSa wrote: > > When I use url_for('advertisement/index?category=' . $subcategory- >>getId()), the URL output is /advertisement?category=2 > > How can I make the URL look lik