On Thu, 23 Jul 2009, mlu...@gmail.com wrote:

> showcategory:
>   url:   /category/:slug/:page
>   param: { module: gamelists, action: category, slug: action, page:
> 1 }
> ...
> 
> A corrresponding url look like
> /category/dress-up/1
> 
> The call to link_top looks like this:
> link_to("dress-up","@showcategory?slug=dress-up&page=2")
> 
> The problem is, the page parameter in the generated link is always 1.

Your routing rule has the default value for page if its not in the url.
May be better to set a default value in your action if it isn't supplied 
instead?



-- 





--~--~---------~--~----~------------~-------~--~----~
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