developit/yii2-errorhandler
Composer 安装命令:
composer require 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.
关键字:
README 文档
README
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.
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.
统计信息
- 总下载量: 338
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0
- 更新时间: 2017-09-11