PHPackages                             liliuwei/thinkphp-jump - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. liliuwei/thinkphp-jump

ActiveThink-extend[Utility &amp; Helpers](/categories/utility)

liliuwei/thinkphp-jump
======================

适用于thinkphp6.0的跳转扩展

v2.0(2y ago)2874.4k↓28.6%18[2 issues](https://github.com/liliuwei/thinkphp-jump/issues)[1 PRs](https://github.com/liliuwei/thinkphp-jump/pulls)1Apache-2.0PHPPHP &gt;=8.0.0

Since Oct 6Pushed 2y ago2 watchersCompare

[ Source](https://github.com/liliuwei/thinkphp-jump)[ Packagist](https://packagist.org/packages/liliuwei/thinkphp-jump)[ RSS](/packages/liliuwei-thinkphp-jump/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (1)

thinkphp-jump
=============

[](#thinkphp-jump)

适用于thinkphp6.0+的跳转扩展

thinkphp6.0安装
-------------

[](#thinkphp60安装)

```
composer require liliuwei/thinkphp-jump=1.*
```

thinkphp8.0安装
-------------

[](#thinkphp80安装)

```
composer require liliuwei/thinkphp-jump=2.*
```

配置
--

[](#配置)

```
// 安装之后会在config目录里生成jump.php配置文件
return[
    // 默认跳转页面对应的模板文件
    'dispatch_success_tmpl' => app()->getRootPath().'/vendor/liliuwei/thinkphp-jump/src/tpl/dispatch_jump.tpl',
    'dispatch_error_tmpl'   => app()->getRootPath().'/vendor/liliuwei/thinkphp-jump/src/tpl/dispatch_jump.tpl',
];
```

用法示例
----

[](#用法示例)

使用 use \\liliuwei\\think\\Jump;

在所需控制器内引用该扩展即可：

```
