Development

Changeset 19973

You must first sign up to be able to contribute.

Changeset 19973

Show
Ignore:
Timestamp:
07/07/09 12:33:55 (7 months ago)
Author:
Russ
Message:

[doc][1.0] Fixes #1442 - Added note about absolute url when redirecting in filter.
Applies to symfony 1.0 only, behaviour was changed in 1.1.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • doc/branches/1.0/book/06-Inside-the-Controller-Layer.txt

    r19943 r19973  
    10561056    } 
    10571057 
    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 
     1067Filters are used extensively in plug-ins, as they allow you to extend the  
     1068features of an application globally. Refer to Chapter 17 to learn more about 
     1069plug-ins, and see the online wiki  
     1070([http://trac.symfony-project.org/](http://trac.symfony-project.org/)) for  
     1071more filter examples. 
    10591072 
    10601073Module Configuration 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.