Home >Backend Development >PHP Tutorial >YII2的rules验证规则没有生效

YII2的rules验证规则没有生效

WBOY
WBOYOriginal
2016-06-06 20:16:331667browse

我在model写了rules验证规则。模板的表单是手写input框,没有用到YII2的自动生成表单输入框的方法,是不是因为这样就不会触发验证规则

回复内容:

我在model写了rules验证规则。模板的表单是手写input框,没有用到YII2的自动生成表单输入框的方法,是不是因为这样就不会触发验证规则

https://segmentfault.com/q/1010000004535215

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn