View Single Post
  #8 (permalink)  
Old 03-24-2008, 04:44 PM
alziromoraes alziromoraes is offline
Junior Member
 
Join Date: Mar 2008
Posts: 5
Default

PHP Code:
$router->addRoute(
'regex1',
new 
Zend_Controller_Router_Route_Regex(
'tcontrol/(.+?)/*',
array(
'module'=>'mod',
'controller' => 'tcontrol',
'action' => 'index'
),
array(
=> '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.
Reply With Quote