PHPackages                             zhangji2/tp6-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. zhangji2/tp6-jump

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

zhangji2/tp6-jump
=================

适用于thinkphp6.0的跳转扩展

v1.0.4(5y ago)074Apache-2.0PHPPHP &gt;=7.1.0

Since Sep 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/zhangji2/tp6-jump)[ Packagist](https://packagist.org/packages/zhangji2/tp6-jump)[ RSS](/packages/zhangji2-tp6-jump/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

tp6-jump
========

[](#tp6-jump)

基于thinkphp5.1的升级的thinkphp6的跳转扩展。

参考
--

[](#参考)

```
https://github.com/liliuwei/thinkphp-jump
```

安装
--

[](#安装)

```
composer require zhangji2/tp6-jump
```

配置
--

[](#配置)

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

用法示例
----

[](#用法示例)

使用 use \\zhangji2\\think\\traits\\Jump;

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

```
