Skip to content

Commit 30ffa63

Browse files
committed
docs: use term "route path" and "route handler"
1 parent 062e8d5 commit 30ffa63

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

user_guide_src/source/incoming/routing.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ If you expect a GET request, you use the ``get()`` method:
3131

3232
.. literalinclude:: routing/001.php
3333

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,
3536
along with any parameters that should be passed to the controller.
3637

3738
The controller and method should
@@ -534,7 +535,7 @@ Route Priority
534535

535536
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.
536537

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.
538539

539540
You can check registered routes in the routing table by running the :ref:`spark routes <routing-spark-routes>` command.
540541

@@ -851,9 +852,9 @@ The output is like the following:
851852
852853
The *Method* column shows the HTTP method that the route is listening for.
853854

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.
855856

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.
857858

858859
.. 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.
859860

0 commit comments

Comments
 (0)