On 9 Ott, 18:35, "Dr. Loboto" <[email protected]> wrote:
> Check for correct rules key.
I don't think the problem is with the rules key.
As I wrote in my post if I log $this->validate after setting myrules,
that is:
$this->Mymodel->setValidation('myrules');
$this->log($this->validate);
I find the correct rules in error.log.
But if I check the value of $this->validate in beforeValidate() the
value is the default rule.
So I suppose that $this->validate is reset (by whom)? in between
update_div() and beforeValidate().
Or $this->Mymodel->setValidation('myrules') sets the wrong validate
variable.
Thank you
maxx
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---