A simple maintenance mode plugin for ZF2. When enabled displays a scheduled maintenance page, supports allowed IP addresses.
- Add
sheridan/zf2-maintenance-mode
(versiondev-master
) to requirements - Run
update
command on composer - Add
zf2MaintenanceMode
to yourapplication.config.php
file
Clone this project into your ./vendor/
directory and enable it in your
application.config.php
file.
PHP >= 5.3.3
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',
),
);
```
- index.phtml file the content
- layout.phtml overrides global site layout