Zend framework 我想为Zend框架构建一个支持lang&country的自定义路由器

Zend framework 我想为Zend框架构建一个支持lang&country的自定义路由器,zend-framework,zend-route,Zend Framework,Zend Route,下面是我想做的一个例子 Url如下所示 http://www.example.com/en/us/directory/companies/view/4433225.html Where is en: is the lang us: is the country directory: is the module companies: is the controller view: is the action 4433225.html: is sort of parameter send to th

下面是我想做的一个例子 Url如下所示

http://www.example.com/en/us/directory/companies/view/4433225.html
Where is
en: is the lang
us: is the country
directory: is the module
companies: is the controller
view: is the action
4433225.html: is sort of parameter send to the action could be the company name like this company-name.html

您可以使用一个。然后,您可以为每种语言指定不同的控制器目录,等等……

是的,我使用传统的模块化目录结构,我想做的是从路由系统中排除前2段,因为ar/us不是控制器或操作,只是定义站点lang和Country的参数。您是否查看了重写规则,例如:Zend_Controller_Router_Route_Regex,我认为您可以使用它配置URL的哪一部分表示语言、控制器、操作等等。。。