PHP code example of thisisbd / silverstripe-maintenance-mode
1. Go to this page and download the library: Download thisisbd/silverstripe-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/ */
thisisbd / silverstripe-maintenance-mode example snippets
bash
# Via Sake:
sake dev/tasks/MaintenanceMode on
# Via the CLI script directly:
php framework/cli-script.php dev/tasks/MaintenanceMode on