webman: 页面跳转
一,如果直接用header("Location")会无效
代码:
header('Location: https://baidu.com');
return false;
无效:
页面不会跳转
二,解决方法:
代码:在controller中
return redirect('https://baidu.com');
返回一个redirect助手函数的结果
代码:
header('Location: https://baidu.com');
return false;
无效:
页面不会跳转
代码:在controller中
return redirect('https://baidu.com');
返回一个redirect助手函数的结果