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
+8-4
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,14 @@ the final output, or even to filter the final output with a bad words filter.
79
79
Configuring Filters
80
80
*******************
81
81
82
-
Once you've created your filters, you need to configure when they get run. This is done in **app/Config/Filters.php** or **app/Config/Routes.php**.
82
+
There are two ways to configure filters when they get run. One is done in
83
+
**app/Config/Filters.php**, the other is done in **app/Config/Routes.php**.
84
+
85
+
If you want to specify filter to a specific route, use **app/Config/Routes.php**
86
+
and see :ref:`URI Routing <applying-filters>`.
87
+
88
+
The filters that are specified to a route (in **app/Config/Routes.php**) are
89
+
executed before the filters specified in **app/Config/Filters.php**.
83
90
84
91
.. 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>`.
85
92
@@ -163,9 +170,6 @@ a list of URI path (relative to BaseURL) patterns that filter should apply to:
0 commit comments