Skip to content

Commit 8fa52ed

Browse files
committed
docs: move "Nesting Groups" down
1 parent 291a4bf commit 8fa52ed

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

user_guide_src/source/incoming/routing.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,16 @@ run the filter before or after the controller. This is especially handy during a
288288

289289
The value for the filter must match one of the aliases defined within **app/Config/Filters.php**.
290290

291+
Setting Other Options
292+
---------------------
293+
294+
At some point, you may want to group routes for the purpose of applying filters or other route
295+
config options like namespace, subdomain, etc. Without necessarily needing to add a prefix to the group, you can pass
296+
an empty string in place of the prefix and the routes in the group will be routed as though the group never existed but with the
297+
given route config options:
298+
299+
.. literalinclude:: routing/027.php
300+
291301
Nesting Groups
292302
--------------
293303

@@ -299,16 +309,6 @@ This would handle the URL at **admin/users/list**.
299309

300310
.. note:: Options passed to the outer ``group()`` (for example ``namespace`` and ``filter``) are not merged with the inner ``group()`` options.
301311

302-
Setting Other Options
303-
---------------------
304-
305-
At some point, you may want to group routes for the purpose of applying filters or other route
306-
config options like namespace, subdomain, etc. Without necessarily needing to add a prefix to the group, you can pass
307-
an empty string in place of the prefix and the routes in the group will be routed as though the group never existed but with the
308-
given route config options:
309-
310-
.. literalinclude:: routing/027.php
311-
312312
Environment Restrictions
313313
========================
314314

0 commit comments

Comments
 (0)