light/yii2-offline
Composer 安装命令:
composer require light/yii2-offline
包简介
offline action
关键字:
README 文档
README
offline action
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist light/yii2-offline "*"
or add
"light/yii2-offline": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
public function actions() { return [ 'offline' => [ 'class' => 'light\Offline\OfflineAction', 'title' => '维护中', 'description' => '服务器正在维护中, <br /> 请稍后访问', ] ]; }
Your config file:
... 'catchAll' => ['site/offline'] ...
License
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-29