thinkphp5 批量注册路由问题。

浏览:858 发布日期:2017/04/21 分类:ThinkPHP5专区 关键字: thinkphp5 批量注册路由 URL简化
请问下 如果我想 调用数据库里的静态文件名表来批量注册路由 怎么处理?
比如:
表里有如下记录:
ID=5 类别=News 静态=hello.html
ID=6 类别=News 静态=nihao.html

我该怎么批量注册路由 实现:
http://www.xxxx.com/hello.html 就去访问:index/news/view?id=5
http://www.xxxx.com/nihao.html 就去访问:index/news/view?id=6
最佳答案
评论( 相关
后面还有条评论,点击查看>>