Changeset 4893
- Timestamp:
- 08/24/07 10:38:50 (1 year ago)
- Files:
-
- doc/trunk/book/09-Links-and-the-Routing-System.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/trunk/book/09-Links-and-the-Routing-System.txt
r4437 r4893 547 547 548 548 >**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. 550 550 551 551 ### Speeding Up Routing by Using the Rule Name