CakePHP plugin that sends out email notification upon encountering unhandled errors.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

ErrorNotifier plugin

ErrorNotifier is a CakePHP plugin that will notify when an error occurs at your site. There are two functions for this plugin, one is to report a handling error such as fatal errors and errors. The second function of this plugin is to allow you to call the plugin method to fire an email at will. This function will be useful if you want to notify yourself with fail save function or etc.

Set up

  1. Load the plugin in bootstrap.php

  2. If you need error notification, please set the below line or you can skip this step


     App::uses('NotifierComponent', 'ErrorNotifier.Controller/Component');


     Configure::write('Error.handler', 'NotifierComponent::handleError');
  3. Open up Plugin/ErrorNotifier/Config/bootstrap.php and modify the email values with yours

Voila, you're set