black-lamp / blcms-error-handler
Error hadler module for Black-Lamp CMS
Installs: 218
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: >=2.0.4
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 ], ], ]