ALWAYS do such things just before actual save/validate. And provide
all relevant code if you want real help.

On Oct 10, 8:38 pm, emmexx <emmeics...@gmail.com> wrote:
> On 9 Ott, 22:54, emmexx <emmeics...@gmail.com> wrote:
>
> > 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.
>
> I moved the $this->Mymodel->setValidation('myrules') line to the add
> function of the controller and it works.
> I don't know why but I don't have enough spare time to investigate
> now.
>
>    maxx
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to