sheridan/zf2-maintenance-mode
Composer 安装命令:
composer require sheridan/zf2-maintenance-mode
包简介
A simple maintenance mode plugin for ZF2. When enabled displays a scheduled maintenance page, supports allowed IP addresses.
关键字:
README 文档
README
zf2MaintenanceMode
Introduction
A simple maintenance mode plugin for ZF2. When enabled displays a scheduled maintenance page, supports allowed IP addresses.
Installation
Using composer
- Add
sheridan/zf2-maintenance-mode(versiondev-master) to requirements - Run
updatecommand on composer - Add
zf2MaintenanceModeto yourapplication.config.phpfile
Manually
Clone this project into your ./vendor/ directory and enable it in your
application.config.php file.
Requires
PHP >= 5.3.3
Configuration
Create a config/maintenance.global.php file with the following contents
```
<?php
return array(
'zf2MaintenanceMode' => array (
'enabled' => true,
'retry-after' => 3600,
'allowed' => array(
'127.0.0.1',
),
);
```
Features
- index.phtml file the content
- layout.phtml overrides global site layout
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-07