On Tue, Jul 13, 2010 at 2:57 PM, Felix Fennell <[email protected]> wrote:
> Removing the /i doesn't do anything unfortunately - I read the
> handbook page too and thought it should work.
>
> They use this to check for any string using alphanumeric characters +
> dashes + underscores;
>
> [0-9a-zA-Z_-]
>
> So I would have though that using [a-zA-Z] would work for just upper
> and lowercase letters.

[-_A-Za-z]+

Note the "+". You want to specify that the string can be one or more
characters. Without it, and with the ^ and $ wrapping the brackets,
you're specifying that it must be just a single char.

> Just so I'm not doing anything stupid, everytime I update the
> validation in the model and upload it, I then delete what ever files
> are in the /app/tmp/cache/models directory - is there anything else I
> need to do.

That should do it, Although, if debug is > 0 that shouldn't be an issue, AFAIK.

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