Hi,
I have a boolean validator for a property like this.
array(‘acceptTerms’,‘boolean’)
I also want to validate that acceptTerms property to be true always. So I also have this rule.
array(‘acceptTerms’,‘compare’,‘compareValue’=>TRUE);
This works. But can I do this with one validation rule rather than with two?
Thanking you,
Chamal.