0
假设下面的路由器:Zend_Controller_Router_Route的动态路由
$router->addRoute('listOfFacilities',
new Zend_Controller_Router_Route('/:lang/:type/',
array('module' => 'default',
'controller' => 'search',
'action' => 'index',
'lang' => 'de',
'type' => ':type'
)));
结果将是: http://example/en/Hotels/
朗==恩 类型==酒店
有可能以这样的方式,换做只有一种语言,例如德语,结果是http://example/Hotels/而不是http://example/de/Hotels/?
坦克,