[symfony-users] Re: Route does not add a parameter when its defined as a default one.

2010-06-24 Thread Svetoslav Shterev
Hello. One -> all route tokens should be unique, you are right on that. Second, the route order matters. The first route that matches will be used. I am guessing /blog/:page is your first route, which is why it matches every case. As for default parameters not appearing - I'm not sure. Can you s

[symfony-users] Re: Route does not add a parameter when its defined as a default one.

2010-06-24 Thread Ivo Az.
About Route 1 - if route has a * wildcard at the end of the url then the parameters will be added like this: http://.../param1/value1/param2/value2/... and so on. This is by default in symfony. What I want is the url to be http://localhost/blog, when the page is equal to 1, and http://localhost/b

Re: [symfony-users] Re: Route does not add a parameter when its defined as a default one.

2010-06-24 Thread Eno
On Thu, 24 Jun 2010, Tom Ptacnik wrote: > I don't get why in first example the Output: http://localhost/blog/page/2 > > If you want the output like this just define your route like > > blog: > url: /blog/page/:page > param: { module: blog, action: list, page: 1 } Yeah I w

[symfony-users] Re: Route does not add a parameter when its defined as a default one.

2010-06-24 Thread Tom Ptacnik
I don't get why in first example the Output: http://localhost/blog/page/2 If you want the output like this just define your route like blog: url: /blog/page/:page param: { module: blog, action: list, page: 1 } On 23 čvn, 13:55, "Ivo Az." wrote: > These are just example rou

[symfony-users] Re: Route does not add a parameter when its defined as a default one.

2010-06-23 Thread Ivo Az.
These are just example routes, there are no routes with the same name. Why should order of route matter when I use it's name in the url helper (e.g. link_for(5 '@blog?page=5'))? For Route 3 this should output http://localhost/blog/page/5, but the output is http://localhost/blog. On Jun 23, 4:38 am