CErrorHandler
Name | errorHandler |
---|---|
Class | CErrorHandler |
Location | /home/vhosts/app-manager.eu5.org/framework/base/CErrorHandler.php |
CErrorHandler handles uncaught PHP errors and exceptions.
It displays these errors using appropriate views based on the nature of the error and the mode the application runs at. It also chooses the most preferred language for displaying the error. CErrorHandler uses two sets of views:
It displays these errors using appropriate views based on the nature of the error and the mode the application runs at. It also chooses the most preferred language for displaying the error. CErrorHandler uses two sets of views:
- development views, named as
exception.php
; - production views, named as
error<StatusCode>.php
;
themes/ThemeName/views/system
: when a theme is active.protected/views/system
framework/views
Options
Displaying 1-6 of 6 results.
Name | Value | Description | Type |
---|---|---|---|
maxSourceLines | 25 | Maximum number of source code lines to be displayed. Defaults to 25. | integer |
maxTraceSourceLines | 10 | Maximum number of trace source code lines to be displayed. Defaults to 10. @since 1.1.6 | integer |
adminInfo | 'the webmaster' | The application administrator information (could be a name or email link). It is displayed in error pages to end users. Defaults to 'the webmaster'. | string |
discardOutput | true | Whether to discard any existing page output before error display. Defaults to true. | boolean |
errorAction | 'site/error' | The route (eg 'site/error') to the controller action that will be used to display external errors. Inside the action, it can retrieve the error information by Yii::app()->errorHandler->error. This property defaults to null, meaning CErrorHandler will handle the error display. | string |
behaviors | array() | The behaviors that should be attached to this component. The behaviors will be attached to the component when {@link init} is called. Please refer to {@link CModel::behaviors} on how to specify the value of this property. | array |