码迷,mamicode.com
首页 > Web开发 > 详细

thinkPHP5.0中使用header跳转没作用

时间:2018-11-14 15:37:05      阅读:415      评论:0      收藏:0      [点我收藏+]

标签:bsp   cloud   文档   dir   tps   官方   ati   style   red   

  我在controller中的方法中这样写:

header("Location:".$url);

  但是一直没动静,不会跳转,最后还是官方文档解决了 https://www.kancloud.cn/manual/thinkphp5/118051

  使用

$this->redirect($url,302);

但是不明白为什么

 

thinkPHP5.0中使用header跳转没作用

标签:bsp   cloud   文档   dir   tps   官方   ati   style   red   

原文地址:https://www.cnblogs.com/ningqing2015/p/9958002.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!