The problem comes from here :
debug($tasklists);
Actually you pass the tasklist into your view, but that variable is
not known in your controller:
try this :
$tasklists = $this->Tasklist->finddata();
$this->set('tasklists',$tasklists);
debug($tasklists);
For the saving, something is wrong .... Why to loop on tasklists if
you always use $this->data to save ? Besides, if you have multiple
record in your form, user $this->Tasklist->create before calling save
and review the $this->data parameter (maybe $this->Tasklist-
>save($this->data['Tasklist'][$i] ?, depends of your form of course).
Hope this helps
On Aug 1, 8:48 pm, rtanz <[EMAIL PROTECTED]> wrote:
> Bdw i was planning to do the save code in the controller as follows:
>
> foreach ($tasklists as $tasklist) {
> $this->Tasklist->save($this->data))
> }
>
> again i dont know if this is the correct way to do it and would like
> some help on how to do the whole thing thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---