Re: saveFields() wiping out $this->data

2007-09-23 Thread francky06l
$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 equivalen

Re: saveFields() wiping out $this->data

2007-09-22 Thread chewie124
$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" gr

Re: saveFields() wiping out $this->data

2007-09-17 Thread rtconner
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 cake-php@googlegroups.com To unsubscribe

saveFields() wiping out $this->data

2007-09-17 Thread chewie124
Can somebody please explain to me why Model->saveField() wipes out $this->data? If I pr($this->data) before the saveField() call, the form data is spit out. After the saveField() call, pr($this->data) only produces an empty array. Can somebody please explain to me why that is (or point me in th