Skip to content

Commit 6a56498

Browse files
authored
Merge pull request #8174 from kenjis/docs-validation-withRequest-not-recommended
docs: add notes to not recommened withRequest()
2 parents c2f341a + 698dbf5 commit 6a56498

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

user_guide_src/source/libraries/validation.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,10 @@ For example, data returned by multi select dropdown:
343343
withRequest()
344344
=============
345345

346+
.. important:: This method exists only for backward compatibility. Do not use it
347+
in new projects. Even if you are already using it, we recommend that you use
348+
another, more appropriate method.
349+
346350
.. warning:: If you want to validate POST data only, don't use ``withRequest()``.
347351
This method uses :ref:`$request->getVar() <incomingrequest-getting-data>`
348352
which returns ``$_GET``, ``$_POST`` or ``$_COOKIE`` data in that order

0 commit comments

Comments
 (0)