PHP code example of jalendport / craft-lockout
1. Go to this page and download the library: Download jalendport/craft-lockout 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/ */
jalendport / craft-lockout example snippets
return [
'enabled' => true, // true, false, or null to use the database state
'headline' => 'Maintenance in progress',
'message' => 'We’ll be back shortly.',
'statusCode' => 503,
'template' => 'errors/maintenance',
];