Validating a checkbox in CakePHP 1.2
In a few simple words: use the ‘comparison’ rule to validate a checkbox.
To give you an example, let’s say a user needs to agree to the terms of service when registering a new account. In your User model you setup a rule for the checkbox as…