4中URL模式ThinkPHP笔记

/ / 2016-02-01   阅读:2561
config.php中使用URL_MODEL来定义URL模式 URL_MODEL有以下4种值: 1 默认模式:pathinfo模式    http://localhost/muke/index.php/Index/user/id/1.html 0 普通模式 &nb...
config.php中使用URL_MODEL来定义URL模式
URL_MODEL有以下4种值:
1 默认模式:pathinfo模式
   http://localhost/muke/index.php/Index/user/id/1.html
0 普通模式
   http://localhost/muke/index.php?m=Index&a=user&id=1
2 重写模式
   http://localhost/muke/Index/user/id/1.html
3 兼容模式
   http://localhost/muke/index.php?s=/Index/user/id/1.html

上一篇:加载自定义配置文件

下一篇:U方法

我要评论

昵称:
验证码:

最新评论

共0条 共0页 10条/页 首页 上一页 下一页 尾页
意见反馈