承接 nkovacs/yii-whoops 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nkovacs/yii-whoops

Composer 安装命令:

composer require nkovacs/yii-whoops

包简介

Whoops integration class for Yii Framework 1.1

README 文档

README

Integrates the Whoops library into Yii 1.1.

This error handler replaces the built-in exception views with Whoops. Your error action (or Yii's built-in error views, if errorAction is not set) is used if your application is not in debug mode (i.e. YII_DEBUG is false), or the exception is a CHttpException.

Usage

  1. Install it:

    • Using Composer (it will automatically install Whoops main libraries as well):
    composer require igorsantos07/yii-whoops:1
    composer install
    • Or downloading and unpacking it in your extensions folder.
  2. If you're using Composer, I strongly recomend you create a vendor alias if you haven't yet. Add this to the beginning of your config/main.php:

    Yii::setPathOfAlias('vendor', __DIR__.'/../../vendor');
  3. Replace your errorHandler entry at config/main.php with the error handler class. Example:

    'errorHandler' => ['class' => 'vendor.nkovacs.yii-whoops.WhoopsErrorHandler']

    If you're using Composer's autoloader, you can simply use 'WhoopsErrorHandler'. You must require 'vendor/autoload.php' in your entry scripts (index.php, yiic.php etc.) for this to work.

  4. If you're using some custom LogRoute that binds to the application's end, you can disable it using the component's disabledLogRoutes property. Just set it to an array containing all the classnames (not aliases!) of each route you want disabled whenever Whoops is launched. By default it disables the famous Yii Debug Toolbar; if you want to keep it enabled, override the defaultDisabledLogRoutes property.

    'errorHandler' => [
        'class'             => 'vendor.nkovacs.yii-whoops.WhoopsErrorHandler',
        'disabledLogRoutes' => 'MyCustomRouteClass'
    ]

Sample screenshot

统计信息

  • 总下载量: 30
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-05-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固