Integrates the Whoops library into Yii 1.1.
-
Install it:
- Using [Composer] (it will automatically install Whoops main libraries as well):
composer require myoutdeskllc/yii-whoops composer install
- Or [downloading] and unpacking it in your
extensionsfolder.
-
If you're using Composer, I strongly recomend you to create a
vendoralias if you haven't yet. Add this to the beginning of yourconfig/main.php:Yii::setPathOfAlias('vendor', __DIR__.'/../../vendor');
-
Replace your
errorHandlerentry atconfig/main.phpwith the error handler class. Example:'errorHandler' => ['class' => 'vendor.myoutdeskllc.yii-whoops.WhoopsErrorHandler']