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/filters.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,11 +67,11 @@ Configuring Filters
67
67
Once you've created your filters, you need to configure when they get run. This is done in **app/Config/Filters.php**.
68
68
This file contains four properties that allow you to configure exactly when the filters run.
69
69
70
-
.. Note:: The safest way to apply filters is to :ref:`disable auto-routing <use-defined-routes-only>`, and :ref:`set filters to routes <applying-filters>`.
70
+
.. Note:: The safest way to apply filters is to :ref:`disable Auto Routing (Legacy) <use-defined-routes-only>`, and :ref:`set filters to routes <applying-filters>`.
71
71
72
72
.. Warning:: It is recommended that you should always add ``*`` at the end of a URI in the filter settings.
73
73
Because a controller method might be accessible by different URLs than you think.
74
-
For example, when auto-routing is enabled, if you have ``Blog::index``,
74
+
For example, when :ref:`auto-routing-legacy` is enabled, if you have ``Blog::index``,
75
75
it can be accessible with ``blog``, ``blog/index``, and ``blog/index/1``, etc.
76
76
77
77
$aliases
@@ -127,8 +127,8 @@ specify the method name in lowercase. It's value would be an array of filters to
127
127
In addition to the standard HTTP methods, this also supports one special case: 'cli'. The 'cli' method would apply to
128
128
all requests that were run from the command line.
129
129
130
-
.. Warning:: If you use ``$methods`` filters, you should :ref:`disable auto-routing <use-defined-routes-only>`
131
-
because auto-routing permits any HTTP method to access a controller.
130
+
.. Warning:: If you use ``$methods`` filters, you should :ref:`disable Auto Routing (Legacy) <use-defined-routes-only>`
131
+
because :ref:`auto-routing-legacy` permits any HTTP method to access a controller.
132
132
Accessing the controller with a method you don't expect could bypass the filter.
0 commit comments