I
I
Ilya Beloborodov2017-01-27 02:40:54
Yii
Ilya Beloborodov, 2017-01-27 02:40:54

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

1 answer(s)
Николай Конюхов, 2017-01-27
@heahoh

Компонент 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 question

Ask a Question

731 491 924 answers to any question