diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-10-23 09:05:31 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-10-23 09:05:31 +0200 |
commit | a9d98ceae9ebec711af9801dce7e43e85d5dcdc1 (patch) | |
tree | 65197974f149eaa1b7da4ca30374ab167dc8cdd8 /user_guide_src/source/general | |
parent | bf93f9397fbae4535fba661f561bf545c903ca8a (diff) |
[ci skip] Add a note about routes.php not being a filter
Diffstat (limited to 'user_guide_src/source/general')
-rw-r--r-- | user_guide_src/source/general/routing.rst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/user_guide_src/source/general/routing.rst b/user_guide_src/source/general/routing.rst index 45950fc11..c03937070 100644 --- a/user_guide_src/source/general/routing.rst +++ b/user_guide_src/source/general/routing.rst @@ -47,11 +47,16 @@ segment of the URL, and a number is found in the second segment, the You can match literal values or you can use two wildcard types: **(:num)** will match a segment containing only numbers. - **(:any)** will match a segment containing any character. +**(:any)** will match a segment containing any character. .. note:: Routes will run in the order they are defined. Higher routes will always take precedence over lower ones. +.. note:: Route rules are not filters! Setting a rule of e.g. + 'foo/bar/(:num)' will not prevent controller *Foo* and method + *bar* to be called with a non-numeric value if that is a valid + route. + Examples ======== |