Skip to content

kaihiro/Exception

This branch is 6 commits behind k1LoW/Exception:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 13, 2017
7e3747c · Feb 13, 2017

History

52 Commits
Dec 16, 2016
Dec 16, 2016
Feb 13, 2017
Dec 16, 2016
May 7, 2012
Dec 16, 2016
Dec 16, 2016

Repository files navigation

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
  • ExceptionNotifier.senders

Authors

License

the MIT License

ExceptionNotifierComponent original lisence

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

About

Exception plugin for CakePHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%