Commit 06c09868 by Alexander Makarov

Merge pull request #2366 from dizews/patch-1

Update error.md
parents bd70ac84 07808f8a
......@@ -20,7 +20,7 @@ return [
],
```
With that configuration in place, whenever an error occurs, Yii will execute the "error" acction of the "Site" controller. That action should look for an exception and, if present, render the proper view file, passing along the exception:
With that configuration in place, whenever an error occurs, Yii will execute the "error" action of the "Site" controller. That action should look for an exception and, if present, render the proper view file, passing along the exception:
```php
public function actionError()
......@@ -65,4 +65,4 @@ After associating the class with the error as in the above, define the `views/si
- `$message`: the error message
- `$exception`: the exception being handled
The `$exception` object will have the same properties outlined above.
\ No newline at end of file
The `$exception` object will have the same properties outlined above.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment