Development

Changeset 4893

You must first sign up to be able to contribute.

Changeset 4893

Show
Ignore:
Timestamp:
08/24/07 10:38:50 (1 year ago)
Author:
fabien
Message:

doc: updated default routing parameters documentation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • doc/trunk/book/09-Links-and-the-Routing-System.txt

    r4437 r4893  
    547547 
    548548>**TIP** 
    549 >You can define a default parameter for all the routing rules by defining the `sf_routing_default` configuration parameter. For instance, if you want all the rules to have a `theme` parameter set to `default` by default, add the line `sfConfig::set('sf_routing_defaults', array('theme' => 'default'));` to your application's `config.php`
     549>You can define a default parameter for all the routing rules by calling the `sfRouting::addDefaultParameter()` method. For instance, if you want all the rules to have a `theme` parameter set to `default` by default, add  `$this->context->getRouting()->setDefaultParameter('theme', 'default');` to one of your global filters
    550550 
    551551### Speeding Up Routing by Using the Rule Name