PHP code example of qeq66 / think-jump

1. Go to this page and download the library: Download qeq66/think-jump library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

qeq66 / think-jump example snippets


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