File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
user_guide_src/source/incoming Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -210,15 +210,6 @@ a simple view:
210
210
211
211
.. literalinclude :: routing/020.php
212
212
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
-
222
213
.. _redirecting-routes :
223
214
224
215
Redirecting Routes
@@ -333,6 +324,15 @@ You can use the ``add()`` method:
333
324
only routes that match the current request method are stored, resulting in fewer routes to scan through
334
325
when trying to find a match.
335
326
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
+
336
336
.. _command-line-only-routes :
337
337
338
338
Command-Line Only Routes
You can’t perform that action at this time.
0 commit comments