ThinkPHP

效果:

代码:

//U('[分组/模块/操作]?参数' [,'参数','伪静态后缀','是否跳转','显示域名'])
echo U('Index/index', array(), '.html', 0, true);

注意:

如果要不显示 index.php 入口文件,则要开启apache rewrite模式。并将 ThinkPHP的 ‘URL_MODEL’ => 2   .

原文地址:https://www.cnblogs.com/KTblog/p/5184999.html