Answer the question
In order to leave comments, you need to log in
How to send a 500 error by mail?
There are a lot of examples for yii2, but I can't find a solution for yii1. Is it possible to solve this problem by standard methods?
Answer the question
In order to leave comments, you need to log in
Компонент yii/framework/base/CErrorHandler.php - унаследуйтесь и переопределите метод
protected function handleError($event) {
MailProcessor::sendError($event);
parent::handleError($event);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question