k1low/exception
Composer 安装命令:
composer require k1low/exception
包简介
Exception plugin for CakePHP
README 文档
README
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.
统计信息
- 总下载量: 10.27k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-03-18