yii rules

WBOY
Release: 2016-06-20 12:28:07
Original
953 people have browsed it

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

这个rules要怎么书写?


回复讨论(解决方案)

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

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



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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template