ITWYY

关注

ThinkPHP3 $this->success,error,show,redirect的URL

ITWYY

关注

阅读 96

2023-03-21


$this->show(U('Index/callFun',array('cate_id'=>1,'status'=>2)));
$this->success("跳转",U("Test/index"));
$this->error("跳转",U("Test/index"));
$this->redirect("Test/index", array("id"=>1),3, "乱码");


-------------------------


redirect使用U方法的话,容易引起错误。




.


相关推荐

英乐

ThinkPHP3 Redirect中文乱码

英乐 76 0 0

少_游

tp6 $this->success() $this->error() redirect() 这种转跳方法已取消(Call to undefined method xxx::success())

少_游 46 0 0

玉字璧

ThinkPHP3 引入其他php类文件

玉字璧 134 0 0

Gascognya

AJAX - $.get( url, [data], [success], [type] )-3传JSON对象

Gascognya 66 0 0

烟中雯城

ThinkPHP3 APP_DEBUG 关闭调试模式出错解决办法

烟中雯城 99 0 0

斗米

ThinkPHP6.0的URL设计以及URL重写

斗米 97 0 0

一天清晨

新浪微博error:redirect_uri_mismatch的解决方法

一天清晨 92 0 0

何晓杰Dev

Thinkphp 3.0 得取get的传值 $_GET['_URL_'][2]

何晓杰Dev 96 0 0

王老师说

git clone error: The requested URL returned error: 401 Unauthorized while accessing 如何解决的?

王老师说 135 0 0

Fifi的天马行空

thinkPHP 项目只需要单个项目模块,比如去掉url中的admin

Fifi的天马行空 37 0 0

精彩评论(0)

0 0 举报