From 78af7962b37142343f45b9e1aa4e6f06f9e961d2 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 8 Nov 2023 11:29:37 +0900 Subject: [PATCH] docs: add note to not recommened validate() --- user_guide_src/source/incoming/controllers.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/user_guide_src/source/incoming/controllers.rst b/user_guide_src/source/incoming/controllers.rst index e4fa3caafc60..6df3cc08251f 100644 --- a/user_guide_src/source/incoming/controllers.rst +++ b/user_guide_src/source/incoming/controllers.rst @@ -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 + 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