Skip to content

Commit 5a85152

Browse files
committed
docs: improve description
1 parent ec8ba91 commit 5a85152

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

user_guide_src/source/incoming/filters.rst

Lines changed: 8 additions & 1 deletion
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

0 commit comments

Comments
 (0)