Yii 2.0: yii2-errorhandler

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

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.

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)

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', ],

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet