PHP code example of netlogix / nxerrorhandler
1. Go to this page and download the library: Download netlogix/nxerrorhandler 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/ */
netlogix / nxerrorhandler example snippets
return [
'EXTENSIONS' => [
'nxerrorhandler' => [
'exceptionHandlerComponents' => [
\Netlogix\Nxerrorhandler\ErrorHandler\Component\ExtbaseArgumentsToBadRequestComponent::class,
\Netlogix\Nxerrorhandler\ErrorHandler\Component\StaticDocumentComponent::class,
],
]
],
'SYS' => [
'productionExceptionHandler' => \Netlogix\Nxerrorhandler\ErrorHandler\GeneralExceptionHandler::class
],
];
if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_FE) {
$GLOBALS['TYPO3_CONF_VARS']['SYS']['productionExceptionHandler'] = \Netlogix\Nxerrorhandler\ErrorHandler\GeneralExceptionHandler::class;
}
yaml
errorHandling:
- errorCode: '400'
errorHandler: PHP
errorPhpClassFQCN: Netlogix\Nxerrorhandler\Error\PageContentErrorHandler
errorContentSource: 't3://page?uid=99'
- errorCode: '404'
errorHandler: PHP
errorPhpClassFQCN: Netlogix\Nxerrorhandler\Error\PageContentErrorHandler
errorContentSource: 't3://page?uid=99'
- errorCode: '500'
errorHandler: PHP
errorPhpClassFQCN: Netlogix\Nxerrorhandler\Error\PageContentErrorHandler
errorContentSource: 't3://page?uid=99'