> Here's a snippet of the save code I am calling.
>
> if($this->Task->saveAll($this->data['Task'])){
> $this->Session->setFlash('The task has been updated', 'default',
> array('class' => 'information'));
> $this->redirect(array('action' => 'show', $id));
>
> }
I think you may want:
if($this->Task->saveAll($this->data)){
instead of:
if($this->Task->saveAll($this->data['Task'])){
The latter appears to be just providing saveAll with just your Task
information and thus is excluding your array of Todo items that came
from the form.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment