library yii-whoops
Whoops integration class for Yii Framework 1.1
nkovacs/yii-whoops
Whoops integration class for Yii Framework 1.1
- Monday, June 2, 2014
- by nkovacs
- Repository
- 1 Watchers
- 0 Stars
- 20 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 2 Forks
- 0 Open issues
- 8 Versions
- 0 % Grown
Yii Error Handler with Whoops
Integrates the Whoops library into Yii 1.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., (*2)
Usage
-
Install it:, (*3)
- 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.
-
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:, (*4)
Yii::setPathOfAlias('vendor', __DIR__.'/../../vendor');
-
Replace your errorHandler entry at config/main.php with the error handler class. Example:, (*5)
'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., (*6)
-
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., (*7)
'errorHandler' => [
'class' => 'vendor.nkovacs.yii-whoops.WhoopsErrorHandler',
'disabledLogRoutes' => 'MyCustomRouteClass'
]
Sample screenshot
, (*8)
dev-master
9999999-dev
Whoops integration class for Yii Framework 1.1
Sources
Download
MIT
The Requires
v1.3.0
1.3.0.0
Whoops integration class for Yii Framework 1.1
Sources
Download
MIT
The Requires
v1.2.1
1.2.1.0
Whoops integration class for Yii Framework 1.1
Sources
Download
MIT
The Requires
v1.2.0
1.2.0.0
Whoops integration class for Yii Framework 1.1
Sources
Download
MIT
The Requires
v1.1.1
1.1.1.0
Whoops integration class for Yii Framework 1.1
Sources
Download
MIT
The Requires
dev-erroraction
dev-erroraction
Whoops integration class into Yii Framework 1.1
Sources
Download
MIT
The Requires
The Development Requires
v1.1.0
1.1.0.0
Whoops integration class into Yii Framework 1.1
Sources
Download
MIT
The Requires
The Development Requires
1.0.0
1.0.0.0
Whoops integration class into Yii Framework 1.1
Sources
Download
MIT
The Requires
The Development Requires