$this->data from Controller is usually the content of your form. $this- >data in model are data going to be save or have been read from your DB.
When you do $this->model->save($this->data) in Controller, you actually set the from data into the $this->data of model and save them. This is equivalent of doing : $this->model->data = $this->data; $this->model->save(); Or $this->model->set($this->data); $this->model->save() Hope this helps On Sep 22, 10:46 pm, chewie124 <[EMAIL PROTECTED]> wrote: > $this is the controller > > On Sep 17, 4:28 pm, rtconner <[EMAIL PROTECTED]> wrote: > > > When you say "$this->data" would $this be the Model or the Controller? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
