On Dec 9, 8:02 pm, WebbedIT <[email protected]> wrote:

> However when I then try to access the $dataarray elsewhere in the
> view it is undefined?!?

If anyone else is trying to change $this->data in a view, and is about
to be desperate, because it doesn't affect the form fields, I just
realized, that $form->data is initialized with a copy of $this->data
when the view is initialized.

This means, that you must change $form->data, if you want to change
form data in the view !

  Regards

    Jonathan

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to