Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Exception plugin for CakePHP
PHP
branch: master
Failed to load latest commit information.
Config Add ExceptionNotifierErrorHandler::handleException()
Controller/Component
Lib Add deniedStatusCode option
.gitignore Initial Commit
README.md Add deniedStatusCode option
composer.json Add 'ExceptionNotifier.html' and use symfony/var-dumper

README.md

Exception plugin for CakePHP

Exception class template.

Install

composer.json:

{
    "require": {
        "k1low/exception": "*"
    }
}

see: https://packagist.org/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

Authors

License

the MIT License

ExceptionNotifierComponent original lisence

Copyright © 2009-2010 milk1000cc, released under the MIT license.

Something went wrong with that request. Please try again.