Skip to content

Commit

Permalink
docs: Fix filters-globals link in helpers/form_helper.rst
Browse files Browse the repository at this point in the history
Fix filters-globals link in helpers/form_helper.rst
  • Loading branch information
obozdag authored Jun 5, 2024
1 parent 8e0b25b commit 2850b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion user_guide_src/source/helpers/form_helper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ The following functions are available:
In most cases the form page is requested using the GET method. Normally, CSRF protection is required
for POST/PUT/DELETE/PATCH requests, but even for GET requests, CSRF filters must be enabled for pages that display Forms.

If you enable CSRF filter with `$globals <https://codeigniter4.github.io/CodeIgniter4/incoming/filters.html#globals>`, it will be active for all request types.
If you enable CSRF filter with :ref:`filters-globals`, it will be active for all request types.
But if you enable CSRF filter with ``public array $methods = ['POST' => ['csrf']];``, the hidden CSRF field will not be added in GET requests.

**Adding Hidden Input Fields**
Expand Down

0 comments on commit 2850b22

Please sign in to comment.