black-lamp/blcms-error-handler
Composer 安装命令:
composer require black-lamp/blcms-error-handler
包简介
Error hadler module for Black-Lamp CMS
关键字:
README 文档
README
Error hadler module for Black-Lamp CMS
Installation
Run command
composer require black-lamp/blcms-error-handler
or add
"black-lamp/blcms-error-handler": "0.*"
to the require section of your composer.json.
Add module to frontend application config
'modules' => [ 'error' => [ 'class' => bl\cms\error\Module::className(), 'webmasterEmail' => 'webmaster@test.com', 'sendMailAutomatically' => true, 'enableUserMessageSending' => false ], ], 'components' => [ 'errorHandler' => [ 'errorAction' => '/error/error/index', ], 'errorHandler' => [ 'errorAction' => '/error/error/index', ], 'errorMailer' => [ 'class' => yii\swiftmailer\Mailer::className(), 'useFileTransport' => false, 'messageConfig' => [ 'charset' => 'UTF-8', ], 'transport' => [ 'class' => 'Swift_SmtpTransport', 'username' => $params['webmasterEmail'], 'password' => $params['webmasterEmailPassword'], 'host' => $params['emailHost'], 'port' => $params['emailPort'], 'encryption' => 'ssl', // if it is need ], ], ]
统计信息
- 总下载量: 218
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2016-05-14