Have you confirmed that the validation function is actually getting called,
via CakeLog::debug() or error_log(print_r($data, true));
If your validation function only returns false, and it never gets called,
mostly likely, validation is not getting called at all.
If the data is data['Community']
I cannot validate my year select.
When posted it appears as :
data[Comunity][start][year]...
2009
Validation rule:
'start' => array(
'required' => true,
'allowEmpty' => false,
'rule' => array('checkYearValues', 'start'),
'message' => 'Please enter a year
Could you post your validation set in the model ?
On Jul 16, 8:56 pm, R13ckJ <[EMAIL PROTECTED]> wrote:
> Take it I'm not the only one missing something huh?!
>
> On Jul 16, 1:50 pm, R13ckJ <[EMAIL PROTECTED]> wrote:
>
> > Can someone tell me why when I set multiple validation messages in my
> >
Take it I'm not the only one missing something huh?!
On Jul 16, 1:50 pm, R13ckJ <[EMAIL PROTECTED]> wrote:
> Can someone tell me why when I set multiple validation messages in my
> model in the view only the last validation message is available? Why
> does it get overwritten so the user can only
Can someone tell me why when I set multiple validation messages in my
model in the view only the last validation message is available? Why
does it get overwritten so the user can only correct one validation
error at a time? Surely I'm missing something!
--~--~-~--~~~-