O'Reilly logo

Web Application Development with Yii 2 and PHP by Jeffrey Winesett, Mark Safronov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Error handling details

We covered error (exceptions) handling in great detail back in Chapter 6, User Authorization and Access Control. We glossed over, however, the exceptions not related to HTTP status codes, and we just barely mentioned the way in which you can actually control how Yii handles errors.

Tip

The important point is that you will probably never need to change the way Yii handles errors, because it's really a well thought out algorithm covering all kinds of exceptional situations possible in a PHP application, so maybe you will never need to add anything to it.

The story about how Yii 2 handles errors is pretty simple. A Yii application has a special component attached by default, called the \yii\base\ErrorHandler. To be precise, for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required