Download the PHP package yangweijie/thinkphp-jump without Composer
On this page you can find all versions of the php package yangweijie/thinkphp-jump. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download yangweijie/thinkphp-jump
More information about yangweijie/thinkphp-jump
Files in yangweijie/thinkphp-jump
Download yangweijie/thinkphp-jump
More information about yangweijie/thinkphp-jump
Files in yangweijie/thinkphp-jump
Please rate this library. Is it a good library?
Informations about the package thinkphp-jump
thinkphp-jump
适用于thinkphp6.0的跳转扩展
安装
composer require liliuwei/thinkphp-jump
配置
// 安装之后会在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;
在所需控制器内引用该扩展即可:
下面示例我在框架自带的BaseController里引入,以后所有需要使用跳转的类继承自带的基类即可
以下是自带的基类
这里继承BaseController后即可使用success、error、redirect、result方法
All versions of thinkphp-jump with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
topthink/framework Version ^6.0 | ^6.1 | ^8.0
topthink/think-view Version ^1.0 | ^2.0
topthink/framework Version ^6.0 | ^6.1 | ^8.0
topthink/think-view Version ^1.0 | ^2.0
The package yangweijie/thinkphp-jump contains the following files
Loading the files please wait ....