我知道我以前看过这件事,但是我找不到任何地方的信息。我需要能够在Zend Framework中使用.html扩展名进行路由。
IE。/controller/action.html应该路由到适当的 Controller / Action 。
我们有一个想法,将.htaccess文件替换为.html扩展名,但我认为更改路由配置将是更好的解决方案。
任何建议都欢迎。
最佳答案
在Google上进行的快速搜索产生了以下教程:
Extending Zend Framework Route and Router for custom routing
Routing and complex URLs in Zend Framework
关于php - Zend Framework Routing : . html扩展,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/472606/