Home > php教程 > PHP开发 > body text

Yii framework analysis (7) - Yii exception handling process

黄舟
Release: 2016-12-27 11:23:18
Original
1343 people have browsed it

The exception handling component works together with CApplication to handle all exceptions (uncaught). CApplication registers its handleException/handleError method as an event handling handle, that is, CApplication gets all exceptions and then hands them to the exception handling component for processing. The main job of exception handling is to display exceptions to the browser. Generally, the exception is handed over to an Action for display: if it is a normal request, an exception page is returned; if it is an ajax request, a json is returned, which is displayed by the browser. The server-side javascript displays json.

The above is the content of Yii framework analysis (7) - Yii's exception handling process. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template