Maintenance plugin for CakePHP
PHP
Latest commit 7ffe27b Oct 3, 2016 @kozo kozo committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
src/Middleware first commit Oct 3, 2016
README.md Update README.md Oct 3, 2016
composer.json first commit Oct 3, 2016
phpunit.xml.dist first commit Oct 3, 2016

README.md

Maintenance Plugin for CakePHP

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require fusic/maintenance

Usage

// src/Application.php
<?php

    public function middleware($middleware)
    {
        $middleware
            // Add Maintenance Plugin
            ->add(new MaintenanceMiddleware())


            ->add(new ErrorHandlerMiddleware(Configure::read('Error.exceptionRenderer')))
            ->add(new AssetMiddleware())
            ->add(new RoutingMiddleware());

        return $middleware;
    }
// src/Template/Error/maintenance.ctp

<p>maintenance page. </p>
// tmp/maintenance

touch tmp/maintenance

Config