PHP Code:
$router->addRoute(
'regex1',
new Zend_Controller_Router_Route_Regex(
'tcontrol/(.+?)/*',
array(
'module'=>'mod',
'controller' => 'tcontrol',
'action' => 'index'
),
array(
1 => 'action'
)
)
);
Na url :
http://www.example.com/tcontrol/cale.../p3/tyu/p4/hjk
PHP Code:
array(3) {
["action"]=>
string(37) "calendario/p1/jh/p2/ert/p3/tyu/p4/hjk"
["module"]=>
string(3) "mod"
["controller"]=>
string(7) "control"
}
All the params goes with the action.