Skip to content

Commit 0578fdc

Browse files
committed
docs: move "Mapping Multiple Routes" down
add() is now not recommended, and described below.
1 parent ed0cdd0 commit 0578fdc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

user_guide_src/source/incoming/routing.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,6 @@ a simple view:
210210

211211
.. literalinclude:: routing/020.php
212212

213-
Mapping Multiple Routes
214-
=======================
215-
216-
While the ``add()`` method is simple to use, it is often handier to work with multiple routes at once, using
217-
the ``map()`` method. Instead of calling the ``add()`` method for each route that you need to add, you can
218-
define an array of routes and then pass it as the first parameter to the ``map()`` method:
219-
220-
.. literalinclude:: routing/021.php
221-
222213
.. _redirecting-routes:
223214

224215
Redirecting Routes
@@ -333,6 +324,15 @@ You can use the ``add()`` method:
333324
only routes that match the current request method are stored, resulting in fewer routes to scan through
334325
when trying to find a match.
335326

327+
Mapping Multiple Routes
328+
=======================
329+
330+
While the ``add()`` method is simple to use, it is often handier to work with multiple routes at once, using
331+
the ``map()`` method. Instead of calling the ``add()`` method for each route that you need to add, you can
332+
define an array of routes and then pass it as the first parameter to the ``map()`` method:
333+
334+
.. literalinclude:: routing/021.php
335+
336336
.. _command-line-only-routes:
337337

338338
Command-Line Only Routes

0 commit comments

Comments
 (0)