Instead of:

>                'rule' => array('custom' => 
> '^[a-zA-Z]+(([\'\,\.\-][a-zA-Z])?[a-zA-Z]*)*$'),

Could you try:

                'rule' => '^[a-zA-Z]+(([\'\,\.\-][a-zA-Z])?[a-zA-Z]*)*
$',

If that works, and you use this regular expression more than once, you
could consider implementing a custom validation rule as described
here:

http://book.cakephp.org/view/1179/Custom-Validation-Rules


On Jul 11, 5:41 pm, Felix <[email protected]> wrote:
> Hi, I have an odd validation issue I can't work out.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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