PHPackages                             selnew/think\_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. [Templating &amp; Views](/categories/templating)
4. /
5. selnew/think\_jump

ActiveThink-extend[Templating &amp; Views](/categories/templating)

selnew/think\_jump
==================

thinkphp6 jump templete

v1.0(6y ago)04MITPHPPHP &gt;=7.1.0

Since Jan 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/selnew/think_jump)[ Packagist](https://packagist.org/packages/selnew/think_jump)[ RSS](/packages/selnew-think-jump/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

think\_jump
===========

[](#think_jump)

thinkphp6 跳转支持：可使用success、error、redirect、result方法

安装
--

[](#安装)

```
composer require selnew/think-jump
```

配置
--

[](#配置)

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

用法示例
----

[](#用法示例)

使用 use selnew\\think\\Jump;

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

```
