Exception class template.
composer.json:
{
"require": {
"k1low/exception": "*"
}
}
see: https://packagist.org/packages/k1low/exception
Set CakePlugin::load('Exception', array('bootstrap' => true));
.
Set EmailConfig::error
option in app/Config/email.php.
Set CakePlugin::load('Exception', array('bootstrap' => 'notifier'));
.
Add the following code in AppController.php
<?php
class AppController extends Controller {
var $components = array('Exception.ExceptionNotifier');
public function beforeFilter() {
$this->ExceptionNotifier->observe();
}
}
- ExceptionNotifier.force
- ExceptionNotifier.prefix
- ExceptionNotifier.html
- ExceptionNotifier.clientIpSafe
- ExceptionNotifier.allowedException
- ExceptionNotifier.deniedException
- ExceptionNotifier.deniedStatusCode
the MIT License
Copyright © 2009-2010 milk1000cc, released under the MIT license.