Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small clarification about prefix routing extra params #7893

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions en/development/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,10 @@ the ``$options`` argument::
$routes->connect('/{controller}');
});

Note the additional route parameters will be added to all the connected routes defined
inside the prefix block. You will need to use all the paramenters in the url array to
steinkel marked this conversation as resolved.
Show resolved Hide resolved
build the route later, if you don't use them you'll get a ``MissingRouteException``.

Multi word prefixes are by default converted using dasherize inflection, ie ``MyPrefix``
would be mapped to ``my-prefix`` in the URL. Make sure to set a path for such prefixes
if you want to use a different format like for example underscoring::
Expand Down