Hello,

I want to validate a checkbox in the model. This field is not in the
DB.

In my view:

<?php echo $form->input('policy', array('label'=>false,'div'=>false,
'type'=>'checkbox')) ?> I understand the policies



in my model:

        var $validate = array(
                        'policy' =>
                                        array(
                                                'rule' => array('custom', 
'/1/'),
                                                'message' => 'Check this box'
                                                )
                                         );




But the validation progress ignores the whole policy field. Why?
How can I validate this field in the model without creating the db
field?

Regards,
Cronet
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to