Hi, I'm using Symfony 1.0.6 and i have a problem con routing if i define this rule:
example: url: /:mode/:category1 param: { module: categories, action: show, mode: basic, category1: 1 } requirements: { mode: ^(basic|premium), category1: \d+ } with this url: /premium/2 i get next: $this->getRequestParameter("mode") -> premium $this->getRequestParameter("category1") -> premium (incorrect) Debugging sfRouting (parse method) i've found that : if (preg_match($regexp, $url, $r)) .... $regexp = #^(?:\/((basic|premium)))?(?:\/(\d+))?$# $url = /premium/2/ $r=Array ( [0] => /premium/2 [1] => ofertas [2] => ofertas [3] => 2 ) maybe regexp is not well defined?? any idea? Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---