我在controller中的方法中这样写:
header("Location:".$url);
但是一直没动静,不会跳转,最后还是官方文档解决了 https://www.kancloud.cn/manual/thinkphp5/118051
使用
$this->redirect($url,302);
但是不明白为什么
原文地址:https://www.cnblogs.com/ningqing2015/p/9958002.html
时间: 2025-01-12 08:19:56
我在controller中的方法中这样写:
header("Location:".$url);
但是一直没动静,不会跳转,最后还是官方文档解决了 https://www.kancloud.cn/manual/thinkphp5/118051
使用
$this->redirect($url,302);
但是不明白为什么
原文地址:https://www.cnblogs.com/ningqing2015/p/9958002.html