I have route in bootstrap.php witch contains :
protected function _initRoutes()
{
$router->addRoute(
'default',
new Zend_Controller_router_Route('/:lang/:module/:controller/:action/*',
array('lang'=>'fa',
'module' => ':module',
'controller'=>'index',
'action'=>'index',
)
)
);
}
But instead of replacing module name , it returns %3module witch is url encoding of :module when i use this line :
$this->url(array('controller'=>'index','action'=>'index'),'default',true) ;
What should i do to get module name from requested URL witch is not working in _initRoutes() ?
Best Answer
Use this
FYI: Manual
Or
Otherwise pass module name into url helper,