developit/yii2-errorhandler

yii2 error handler With the ability to search on google and stackoverflow and display results in order to find a quick solution.

Installs: 333

Dependents: 0

Suggesters: 0

Security: 0

Stars: 7

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0 2017-09-15 15:10 UTC

This package is auto-updated.

Last update: 2024-03-04 21:44:12 UTC


README

yii2 error handler With the ability to search on google, stackoverflow and yiiframework and display results in order to find a quick solution.

screenshot

Installation

The preferred way to install this extension is through composer.

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)

    /**
     * @inheritdoc
     */
    public function actions()
    {
        return [
            'error' => [
                'class' => 'yii\web\ErrorAction',
            ],
            'errorhandler' => [
                'class' => 'developit\errorhandler\ErrorHandlerAction',
            ]
        ];
    }

update errorHandler on config.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.