View Single Post
  #1 (permalink)  
Old 03-22-2008, 01:58 PM
alziromoraes alziromoraes is offline
Junior Member
 
Join Date: Mar 2008
Posts: 5
Default Why Route doesn't work?

Hi,

Why this regex route doesn't match the module?
$router->addRoute(
'regex1',
new Zend_Controller_Router_Route_Regex(
'tcontrol/(.+/)*',
array(
'module'=>'mod',
'controller' => 'control',
'action' => 'index'
),
array(
1 => 'action'
)
)
);
With url : http://www.example.com/tcontrol/cale.../p3/tyu/p4/hjk
array(7) {
["controller"]=>
string(7) "tcontrol"
["action"]=>
string(10) "calendar"
["p1"]=>
string(2) "jh"
["p2"]=>
string(3) "ert"
["p3"]=>
string(3) "tyu"
["p4"]=>
string(3) "hjk"
["module"]=>
string(7) "default"
}

Thks.
Reply With Quote