TP5的redirect重定向问题

浏览:5063 发布日期:2017/09/04 分类:求助交流 关键字: thinkphp5,重定向
protected function redirect($url, $params = [], $code = 302, $with = [])中的
$params不能传递变量,传递常量可以正常跳转,传递变量就为空了

上段代码,方法function abc($a)中
$this->redirect('index',['code'=2常量]),正常跳转到指定页
$this->redirect('index',['code'=$a变量量]),就不行了
最佳答案
评论() 相关
后面还有条评论,点击查看>>