webman: 页面跳转

一,如果直接用header("Location")会无效

代码:

            header('Location: https://baidu.com');
            return false;

无效:

页面不会跳转

二,解决方法:

代码:在controller中

return redirect('https://baidu.com');

 返回一个redirect助手函数的结果

posted @ 2025-03-15 15:14  刘宏缔的架构森林  阅读(56)  评论(0)    收藏  举报