mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-19 07:07:58 +08:00
fix misprint in docs (#12155) [skip ci]
This commit is contained in:
committed by
Alexander Makarov
parent
b7f91fabb3
commit
623aed72eb
@@ -157,7 +157,7 @@ the error action and the error view are already defined for you.
|
||||
### Customizing Error Response Format <span id="error-format"></span>
|
||||
|
||||
The error handler displays errors according to the format setting of the [response](runtime-responses.md).
|
||||
If the the [[yii\web\Response::format|response format]] is `html`, it will use the error or exception view
|
||||
If the [[yii\web\Response::format|response format]] is `html`, it will use the error or exception view
|
||||
to display errors, as described in the last subsection. For other response formats, the error handler will
|
||||
assign the array representation of the exception to the [[yii\web\Response::data]] property which will then
|
||||
be converted to different formats accordingly. For example, if the response format is `json`, you may see
|
||||
|
||||
Reference in New Issue
Block a user