PHP code example of taguz91 / yii2-error-handler
1. Go to this page and download the library: Download taguz91/yii2-error-handler 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/ */
taguz91 / yii2-error-handler example snippets
// confing\main.php
'components' => [
...,
'errorHandler' => [
'errorAction' => 'site/error',
'class' => \taguz91\ErrorHandler\ErrorHandler::class,
'empresa' => $_GET['empresa'] ?? 'undefined',
'saveError' => true,
'showTrace' => YII_DEBUG,
// This exceptions not be save into database
'exceptionsNotSave' => [
\taguz91\ErrorHandler\exceptions\MessageException::class
],
],
]