Home  >  Article  >  Backend Development  >  yii rules

yii rules

WBOY
WBOYOriginal
2016-06-20 12:28:07933browse

两个字段中只要有一个填了就算通过

这个rules要怎么书写?


回复讨论(解决方案)

两个字段都填才通过,怎么写?

两个字段都填才通过,怎么写?



array('test_1, test_2',  'required'),

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