Skip to content

Commit bdbb775

Browse files
authored
Merge pull request #7910 from kenjis/docs-filters.rst
docs: improve filters.rst
2 parents 1ff3e6e + 1d7f21c commit bdbb775

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: user_guide_src/source/incoming/filters.rst

+8-4
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,14 @@ the final output, or even to filter the final output with a bad words filter.
7979
Configuring Filters
8080
*******************
8181

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**.
8390

8491
.. 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>`.
8592

@@ -163,9 +170,6 @@ a list of URI path (relative to BaseURL) patterns that filter should apply to:
163170

164171
.. _filters-filters-filter-arguments:
165172

166-
Filter Arguments
167-
================
168-
169173
Filter Arguments
170174
----------------
171175

0 commit comments

Comments
 (0)