yii boolean validator

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.

just remove the first validator

Hi,

Why just delete the first validation rule? Why does it not work? I am in the same scenario right now but just curious why this first one does not work.