PHP code example of janoszab / yii2-maintenance-mode
1. Go to this page and download the library: Download janoszab/yii2-maintenance-mode library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
janoszab / yii2-maintenance-mode example snippets
'bootstrap' => ['log', 'maintenance'],
...
'modules' => [
'maintenance' => [
'class' => 'sacara\maintenance\Module',
// optional
'maintenanceFileOn' => 'maintenance.on', // default is `maintenance.on`
],
],