| 1058 | | Filters are used extensively in plug-ins, as they allow you to extend the features of an application globally. Refer to Chapter 17 to learn more about plug-ins, and see the online wiki ([http://trac.symfony-project.org/](http://trac.symfony-project.org/)) for more filter examples. |
|---|
| | 1058 | >**NOTE** |
|---|
| | 1059 | >In symfony 1.0, when using redirect in a filter you must use a full url, |
|---|
| | 1060 | >as it will not be parsed by the routing system. If you need to generate |
|---|
| | 1061 | >a url from a route, you can use the `genUrl()` function of the controller |
|---|
| | 1062 | >first: |
|---|
| | 1063 | > |
|---|
| | 1064 | > $url = $context->getController()->genUrl("module/action", true); |
|---|
| | 1065 | > return $context->getController()->redirect($url); |
|---|
| | 1066 | |
|---|
| | 1067 | Filters are used extensively in plug-ins, as they allow you to extend the |
|---|
| | 1068 | features of an application globally. Refer to Chapter 17 to learn more about |
|---|
| | 1069 | plug-ins, and see the online wiki |
|---|
| | 1070 | ([http://trac.symfony-project.org/](http://trac.symfony-project.org/)) for |
|---|
| | 1071 | more filter examples. |
|---|