Skip to content

Commit

Permalink
Update error.md
Browse files Browse the repository at this point in the history
typo fix
  • Loading branch information
dizews committed Feb 8, 2014
1 parent bd70ac8 commit 07808f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/error.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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.
The `$exception` object will have the same properties outlined above.

0 comments on commit 07808f8

Please sign in to comment.