https://github.com/rezaei121/yii2-errorhandler
yii2 error handler With the ability to search on google, stackoverflow and yiiframework and display results in order to find a quick solution.
https://github.com/rezaei121/yii2-errorhandler
yii2 yii2-error yii2-error-handler yii2-extension
Last synced: 8 months ago
JSON representation
yii2 error handler With the ability to search on google, stackoverflow and yiiframework and display results in order to find a quick solution.
- Host: GitHub
- URL: https://github.com/rezaei121/yii2-errorhandler
- Owner: rezaei121
- License: gpl-3.0
- Created: 2017-09-11T14:19:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-15T15:44:50.000Z (over 8 years ago)
- Last Synced: 2025-04-04T20:25:04.884Z (9 months ago)
- Topics: yii2, yii2-error, yii2-error-handler, yii2-extension
- Language: PHP
- Homepage: http://www.developit.ir/
- Size: 46.9 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
yii2 custom error handler
=========================
yii2 error handler With the ability to search on google, stackoverflow and yiiframework and display results in order to find a quick solution.

Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
composer require developit/yii2-errorhandler
```
or add
```
"developit/yii2-errorhandler": "*"
```
to the require section of your `composer.json` file.
Usage
-----
create a action(eg. errorhandler)
```php
/**
* @inheritdoc
*/
public function actions()
{
return [
'error' => [
'class' => 'yii\web\ErrorAction',
],
'errorhandler' => [
'class' => 'developit\errorhandler\ErrorHandlerAction',
]
];
}
```
update errorHandler on config.php
```php
'errorHandler' => [
'class' => 'developit\errorhandler\ErrorHandler',
'errorAction' => 'site/error',
],
```
License
-------
yii2-errorhandler is an open source project created by Ehsan Rezaei(http://www.developit.ir) that is licensed under GPL-3.0.