tp6 $this->success() $this->error() redirect() 这种转跳方法已取消
Tp6 $this->success()、error() 跳转功能
tp6说明连接:https://www.kancloud.cn/manual/thinkphp6_0/1037654

这个是packagist上扩展的详情:
https://packagist.org/packages/liliuwei/thinkphp-jump

解决方法:
1.composer安装扩展
composer require liliuwei/thinkphp-jump

2.然后在BaseController里
Tp6 $this->success()、error() 跳转功能3.你的控制器继承BaseController

即可正常使用

$this->success(‘成功’);

Ps:按需
public function __construct(App $app) { parent::__construct($app); }

相关文章:

  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-30
  • 2021-11-14
猜你喜欢
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案