View Single Post
  #9 (permalink)  
Old 03-25-2008, 10:58 PM
xavisd xavisd is offline
Junior Member
 
Join Date: Mar 2008
Posts: 8
Default

Hi,

Can I ask you why don't use Zend_Controller_Router_Route ??

Code:
$router->addRoute('route1',new Zend_Controller_Router_Route(
'tcontrol/:param1/*',
array(
'module'=>'mod',
'controller' => 'tcontrol',
'action' => 'index',
'param1' => 'action'
)));
I don't know about regex, but (.+?) excludes '/'? At doc (Zend Framework: Documentation) they use /* for parameters, after define module, controller and action (I don't know if this is important)
Reply With Quote