Changeset 10605
- Timestamp:
- 08/01/08 23:10:40 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doc/branches/1.1/book/09-Links-and-the-Routing-System.txt
r10587 r10605 440 440 >**New in symfony 1.1** named wildcards can be separated by a slash or a dot, so you can write a pattern like: 441 441 > 442 > my_rule: 443 > url: /foo/:bar.:format 442 > my_rule: 443 > url: /foo/:bar.:format 444 444 > param: { module: mymodule, action: myaction } 445 445 > 446 >That way, an external URL like 'foo/12.xml' will mat h `my_rule` and execute `mymodule/muaction` with two parameters: `$bar=12` and `$format=xml`.446 >That way, an external URL like 'foo/12.xml' will match `my_rule` and execute `mymodule/myaction` with two parameters: `$bar=12` and `$format=xml`. 447 447 >You can add more separators by changing the `segment_separators` parameters value in the `sfPatternRouting` factory configuration (see chapter 19). 448 448 doc/branches/1.2/book/09-Links-and-the-Routing-System.txt
r10587 r10605 444 444 > param: { module: mymodule, action: myaction } 445 445 > 446 >That way, an external URL like 'foo/12.xml' will mat h `my_rule` and execute `mymodule/muaction` with two parameters: `$bar=12` and `$format=xml`.446 >That way, an external URL like 'foo/12.xml' will match `my_rule` and execute `mymodule/myaction` with two parameters: `$bar=12` and `$format=xml`. 447 447 >You can add more separators by changing the `segment_separators` parameters value in the `sfPatternRouting` factory configuration (see chapter 19). 448 448