ThinkPHP U方法更换入口

来源:互联网 发布:自动刷新网页软件 编辑:程序博客网 时间:2024/04/30 05:02

例如当前入口是index.php的,我有U方法{:U(‘News/index’)},这样跳转的链接是 /index.php/News/index

下面处理是更换入口路径

{:str_ireplace(_PHP_FILE_,'/home.php',U('News/index'))}

跳转为/home/News/index

0 0
原创粉丝点击