Skip to content

Commit

Permalink
docs: add note to not recommened validate()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Nov 8, 2023
1 parent 656c076 commit 78af796
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions user_guide_src/source/incoming/controllers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ rule and message array formats, as well as available rules:
$this->validate()
=================

.. important:: This method exists only for backward compatibility. Do not use it

Check warning on line 114 in user_guide_src/source/incoming/controllers.rst

View workflow job for this annotation

GitHub Actions / Check User Guide syntax

Inline literal start-string without end-string.
in new projects. Even if you are already using it, we recommend that you use
the ``validateData()` method instead.
The controller also provides the convenience method ``validate()``.

.. warning:: Instead of ``validate()``, use ``validateData()`` to validate POST
Expand Down

0 comments on commit 78af796

Please sign in to comment.