thinkphp 6.0 在 initialize 中重定向无效

Posted GetcharZp

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了thinkphp 6.0 在 initialize 中重定向无效相关的知识,希望对你有一定的参考价值。

thinkphp 6.0 在 initialize 中重定向无效

 

改用 header() 函数

实例:

// header(‘location:/index.php/模块/控制器/方法‘);
header(‘location:/index.php/admin/login/login‘);

 

 

以上是关于thinkphp 6.0 在 initialize 中重定向无效的主要内容,如果未能解决你的问题,请参考以下文章