Skip to content

Commit 71c1848

Browse files
committed
docs: add note to not recommened validate()
1 parent 3747271 commit 71c1848

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

user_guide_src/source/incoming/controllers.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ rule and message array formats, as well as available rules:
111111
$this->validate()
112112
=================
113113

114+
.. important:: This method exists only for backward compatibility. Do not use it
115+
in new projects. Even if you are already using it, we recommend that you use
116+
the ``validateData()`` method instead.
117+
114118
The controller also provides the convenience method ``validate()``.
115119

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

0 commit comments

Comments
 (0)