File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ withRequest()
303
303
304
304
.. important :: 此方法仅为向后兼容存在。新项目请勿使用。即使已在使用,也建议改用其他更合适的方法。
305
305
306
- .. warning :: 若仅需验证 POST 数据,请勿使用 ``withRequest()``。此方法使用 :ref:`$request->getVar() <incomingrequest-getting-data>`,根据 php.ini 的 `request-order <https://www.php.net/manual/en /ini.core.php#ini.request-order>`_ 返回 ``$_GET``、``$_POST`` 或 ``$_COOKIE`` 数据(按顺序)。新值覆盖旧值。若同名,Cookie 可能覆盖 POST 值。
306
+ .. warning :: 若仅需验证 POST 数据,请勿使用 ``withRequest()``。此方法使用 :ref:`$request->getVar() <incomingrequest-getting-data>`,根据 php.ini 的 `request-order <https://www.php.net/manual/zh /ini.core.php#ini.request-order>`_ 返回 ``$_GET``、``$_POST`` 或 ``$_COOKIE`` 数据(按顺序)。新值覆盖旧值。若同名,Cookie 可能覆盖 POST 值。
307
307
308
308
最常见的验证场景是验证来自 HTTP 请求的输入数据。若需要,可传递当前 Request 对象实例,它会将所有输入数据设为待验证数据:
309
309
@@ -830,9 +830,9 @@ valid_url_strict 是 如果字段不包含有效的 URL,则验
830
830
831
831
.. important :: 验证库 **从不修改** 待验证数据。
832
832
833
- .. _timezone_identifiers_list() : https://www.php.net/manual/en /function.timezone-identifiers-list.php
834
- .. _strtotime() : https://www.php.net/manual/en /function.strtotime.php
835
- .. _empty() : https://www.php.net/manual/en /function.empty.php
833
+ .. _timezone_identifiers_list() : https://www.php.net/manual/zh /function.timezone-identifiers-list.php
834
+ .. _strtotime() : https://www.php.net/manual/zh /function.strtotime.php
835
+ .. _empty() : https://www.php.net/manual/zh /function.empty.php
836
836
837
837
.. _rules-for-file-uploads :
838
838
You can’t perform that action at this time.
0 commit comments