Skip to content

Commit c92d508

Browse files
sebhoerlweaverryan
authored andcommitted
Corrected suffix tip
1 parent 4115e46 commit c92d508

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/routing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ the POST method and a secure connection::
119119

120120
.. tip::
121121

122-
If you want to match all urls which start with a certain path and end in a
122+
If you want to match all urls which start with a certain path and end in an
123123
arbitrary suffix you can use the following route definition::
124124
125-
$route = new Route('/start/{suffix}', array('suffix' => '.*'));
125+
$route = new Route('/start/{suffix}', array('suffix' => ''), array('suffix' => '.*'));
126126
127127

128128
Using Prefixes
@@ -300,4 +300,4 @@ automatically in the background if you want to use it. A basic example of the
300300

301301
If you use caching, the Routing component will compile new classes which
302302
are saved in the ``cache_dir``. This means your script must have write
303-
permissions for that location.
303+
permissions for that location.

0 commit comments

Comments
 (0)