You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/incoming/routing.rst
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,8 @@ If you expect a GET request, you use the ``get()`` method:
31
31
32
32
.. literalinclude:: routing/001.php
33
33
34
-
A route takes the URI path (``/``) on the left, and maps it to the controller and method (``Home::index``) on the right,
34
+
A route takes the **Route Path** (URI path relative to the BaseURL. ``/``) on the left,
35
+
and maps it to the **Route Handler** (controller and method ``Home::index``) on the right,
35
36
along with any parameters that should be passed to the controller.
36
37
37
38
The controller and method should
@@ -534,7 +535,7 @@ Route Priority
534
535
535
536
Routes are registered in the routing table in the order in which they are defined. This means that when a URI is accessed, the first matching route will be executed.
536
537
537
-
.. note:: If a route (the URI path) is defined more than once with different handlers, only the first defined route is registered.
538
+
.. note:: If a route path is defined more than once with different handlers, only the first defined route is registered.
538
539
539
540
You can check registered routes in the routing table by running the :ref:`spark routes <routing-spark-routes>` command.
540
541
@@ -851,9 +852,9 @@ The output is like the following:
851
852
852
853
The *Method* column shows the HTTP method that the route is listening for.
853
854
854
-
The *Route* column shows the route (URI path) to match. The route of a defined route is expressed as a regular expression.
855
+
The *Route* column shows the route path to match. The route of a defined route is expressed as a regular expression.
855
856
856
-
Since v4.3.0, the *Name* column shows the route name. ``»`` indicates the name is the same as the route.
857
+
Since v4.3.0, the *Name* column shows the route name. ``»`` indicates the name is the same as the route path.
857
858
858
859
.. important:: The system is not perfect. If you use Custom Placeholders, *Filters* might not be correct. If you want to check filters for a route, you can use :ref:`spark filter:check <spark-filter-check>` command.
0 commit comments