mervick/yii2-under-construction
最新稳定版本:v1.0.1
Composer 安装命令:
composer require mervick/yii2-under-construction
包简介
Yii2 Under Construction Module
README 文档
README
The simple yii2 extension which can disallow access to website.
Installation
Via composer:
composer require "mervick/yii2-under-construction" "~1.0"
Usage
Add to your config.php:
return [ // ... 'modules' => [ 'under-construction' => [ 'class' => '\mervick\underconstruction\Module', // this is the on off switch 'locked' => true, // the list of IPs that are allowed to access site. // The default value is `['127.0.0.1', '::1']`, which means the site can only be accessed by localhost. 'allowedIPs' => ['127.0.0.1', '::1'], // change this to your namespace, if you want use your own controller 'controllerNamespace' => 'mervick\underconstruction\controllers', // if you want use your views 'viewPath' => '@alias/to/viewPath', // default layout 'layout' => 'main', // if you want redirect to external website, default is null 'redirectURL' => 'http://example.com', ], ], 'bootstrap' => [ 'under-construction', ], ];
Preview
License
统计信息
- 总下载量: 1.96k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-16