Thinkphp5如何隐藏入口文件index.php,我们只需要在thinkphp框架的
// 在执行应用前加上如下代码
\think\Url::root('/');
// 执行应用
\think\App::run()->send();
//显示index.php方法设置 \think\Url::root('/index.php'); // 执行应用 \think\App::run()->send();
如果本文对你有帮助,欢迎打赏本站
Thinkphp5如何隐藏入口文件index.php,我们只需要在thinkphp框架的
// 在执行应用前加上如下代码
\think\Url::root('/');
// 执行应用
\think\App::run()->send();
//显示index.php方法设置 \think\Url::root('/index.php'); // 执行应用 \think\App::run()->send();
如果本文对你有帮助,欢迎打赏本站