PHP code example of cronfy / yii2-web-errorhandler
1. Go to this page and download the library: Download cronfy/yii2-web-errorhandler 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/ */
...
'components' => [
'errorHandler' => [
'class' => 'cronfy\yii\web\ErrorHandler',
'typesToHandle' => E_ALL & ~E_NOTICE,
// NOTE: although E_ALL is set here, PHP Notices will not be converted to exceptions,
// because they were disabled via 'typesToHandle' option above.
// PHP Warnings and other errors will be converted to exceptions.
'typesToExceptions' => E_ALL,
],
],
...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.