You know what I think I figured it out, this is one of those things that I feel incredibly stupid about. The application I'm making has to process the form data with a plugin first then the data is sent back to the controller using a session variable, and that variable is set as the $this->data variable, and I just forgot to unset the Session
On Nov 11, 4:08 pm, patcoll <[EMAIL PROTECTED]> wrote: > this has always worked for me... > > $this->Model->create(); > $this->Model->save($this->data); > > On Nov 11, 2:58 pm, djXternal <[EMAIL PROTECTED]> wrote: > > > Hey everyone, well I have been working on my add() function for an > > application I'm working on. Everything has been working great up > > until today. Now after I add an item, the $this->data variable does > > not reset its content. This means that everytime I click the link to > > Add a new Item it adds another copy of the item I had previously > > added. If I go into my browsers settings and clear the cookies, then > > it works again one time then keeps it saved. > > > I thought it could've been a browser problem but I have tried it in > > FF3 and Google Chrome, and it acts the same in both. > > > What would cause this and how could I fix it? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
