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) }
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] => premium [2] => premium [3] => 2 )
maybe $regexp is not well defined?? a bug in sfRouting? any idea?
--
"La imaginación puede llevarte a cualquier lado"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---