qeq66 / think-jump

thinkphp6跳转扩展

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

think-jump

基于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']);
    }
}

About

thinkphp6跳转扩展

License:Apache License 2.0


Languages

Language:PHP 68.0%Language:HTML 32.0%