fedornabilkin/yii2-redirect
Composer 安装命令:
composer require fedornabilkin/yii2-redirect
包简介
Find and save page not found, add new path.
关键字:
README 文档
README
Redirect manager, not found finder
Find and save page not found, add new path.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist fedornabilkin/yii2-redirect "*"
or add
"fedornabilkin/yii2-redirect": "*"
to the require section of your composer.json file.
Migrations
php yii migrate --migrationPath=@fedornabilkin/redirect/migrations
Settings
add backend config
'modules' => [ 'redirect' => [ 'class' => fedornabilkin\redirect\Module::class, 'frontendHost' => 'http://site.ru', // Go to page from admin panel ], ],
Usage
Add controller actions
public function actions() { return [ 'error' => [ 'class' => \fedornabilkin\redirect\actions\ErrorAction::class, ], ]; }
Manager path
You must restrict access to the controller!
/redirect/manager
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-20