qeq66/think-jump

安装次数: 1,028

依赖者: 0

建议者: 0

安全性: 0

星标: 10

关注者: 1

分支: 1

开放问题: 0

类型:think-extend

v1.2 2019-10-11 07:37 UTC

This package is auto-updated.

Last update: 2024-09-11 18:48:53 UTC


README

基于thinkphp6的跳转扩展

安装

composer require qeq66/think-jump

用法示例

在所需控制器中引用该扩展:

<?php
namespace app\controller;

use app\BaseController;

class Index extends BaseController
{
  	use \qeq66\think\Jump;
    public function index()
    {
      return $this->error('错误');
      return $this->success('正确');
      return $this->redirect('index/hello');
      return $this->result(['username' => 'qeq66', 'content' => '输出json']);
    }
}