Skip to content

Commit 05ac050

Browse files
committed
docs: add note and warning
Waring about the possibility of bypassing the filter.
1 parent b5478b3 commit 05ac050

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

user_guide_src/source/incoming/filters.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ Configuring Filters
9191
Once you've created your filters, you need to configure when they get run. This is done in **app/Config/Filters.php**.
9292
This file contains four properties that allow you to configure exactly when the filters run.
9393

94+
.. 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>`.
95+
96+
.. Warning:: It is recommended that you should always add ``*`` at the end of a URI in the filter settings.
97+
Because a controller method might be accessible by different URLs than you think.
98+
For example, when auto-routing is enabled, if you have ``Blog::index``,
99+
it can be accessible with ``blog``, ``blog/index``, and ``blog/index/1``, etc.
100+
94101
$aliases
95102
========
96103

0 commit comments

Comments
 (0)