zend framework1.0 路由特殊配置,怎样实现?

lp190892593 2012-08-01 10:22:45
访问http://taobao.com/index/index/cityid/1 指向 http://taobao.com/Beijing
访问http://taobao.com/index/index/cityid/2 指向 http://taobao.com/ShangHai
访问http://taobao.com/index/index/cityid/3 指向 http://taobao.com/HangZhou
.......
等等近百个城市。

ini文件中只能定位到具体动作
[production]
routes.rating.type = "Zend_Controller_Router_Route"
routes.BeiJing.route = "BeiJing"
routes.BeiJing.defaults.controller = "index"
routes.BeiJing.defaults.action = "index"
...全文
167 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
蹲坑看月亮 2012-08-02
  • 打赏
  • 举报
回复
这,这个,呵呵 帮你顶贴吧

4,250

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧