/ / 2016-02-01   阅读:2494
格式:U('模块/方法',array('id'=>1),'xxxx html htm shtml',true/false,'localhost') 举例:echo U('Index/user',array('id'=>1),'html',false,'localhost'); 说明:通常只用到前面两个...
格式:U('模块/方法',array('id'=>1),'xxxx html htm shtml',true/false,'localhost')
举例:echo U('Index/user',array('id'=>1),'html',false,'localhost');
说明:通常只用到前面两个参数就可以了。
输出结果:
http://localhost/muke/index.php/Index/user/id/1.html

上一篇:4中URL模式

下一篇:URL重写

我要评论

昵称:
验证码:

最新评论

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