U方法ThinkPHP笔记
格式: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
我要评论