Skip to content

Commit 3cb0eb7

Browse files
authored
Merge pull request #7893 from cakephp/steinkel-patch-1
Small clarification about prefix routing extra params
2 parents 16e8708 + e37c540 commit 3cb0eb7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

en/development/routing.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,10 @@ the ``$options`` argument::
637637
$routes->connect('/{controller}');
638638
});
639639

640+
Note the additional route parameters will be added to all the connected routes defined
641+
inside the prefix block. You will need to use all the parameters in the url array to
642+
build the route later, if you don't use them you'll get a ``MissingRouteException``.
643+
640644
Multi word prefixes are by default converted using dasherize inflection, ie ``MyPrefix``
641645
would be mapped to ``my-prefix`` in the URL. Make sure to set a path for such prefixes
642646
if you want to use a different format like for example underscoring::

0 commit comments

Comments
 (0)