PHP code example of busy-noggin / static-error-pages
1. Go to this page and download the library: Download busy-noggin/static-error-pages 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/ */
busy-noggin / static-error-pages example snippets
namespace MyVendor\MyExtension\EventListener;
use BusyNoggin\StaticErrorPages\Event\ErrorPageEvent;
class ErrorPageEventListener
{
public function handleEvent(ErrorPageEvent $event): void
{
// Your code to manipulate the event data or trigger other actions
}
}
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['static_error_pages']['backend'] = ...