yes I've already know that, but I've also found that when I use a route name directly (put a '@' before the route name), sf will always throw error "the route not found" if the route has parameters. I tried it in sf 1.4.
Eno wrote: > On Wed, 6 Jan 2010, chrisyue wrote: > > > in an action method > > if I use > > $this->redirect('a_route_name', array( 'a' => '1', 'b' => '2', 'c' => > > '3')); > > > > it will redirect to a url like /the_route?a=1&b=2&c=3, is it a > > bug? or I just use it wrong? > > > > Route names usually have a @ in front: > > http://www.symfony-project.org/book/1_2/09-Links-and-the-Routing-System#chapter_09_sub_speeding_up_routing_by_using_the_rule_name > > > > --
-- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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.