tp6 使用$this->success() $this->error() redirect() 完成轉跳方法

官方系統不再提供基礎控制器類think\Controller,原來的success、error、redirect和result方法需要自己在基礎控制器類裏面實現。 1.安裝下面的擴展用於支持舊版本的跳轉操作 composer require liliuwei/thinkphp-jump 2.在app下的BaseController.php 文件中添加: use \liliuwei\think\Ju
相關文章
相關標籤/搜索