Use the 'allowEmpty' setting, like this:

var $validate = array(
        'url' => array(
                'rule' => 'url',
                'allowEmpty' => true,
                'message' => 'Must be a valid URL',
        ),
);


The tempdocs actually has a pretty good dissection of the validation
functions:
http://tempdocs.cakephp.org/#TOC121877

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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