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