you can send a variable to the element:
 renderElement('my_element', array('data' => $data));

 it's really useful :)
 spark

On 7/2/07, Ski <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
>   I am writing an application which enables editing of data for a
> parent model and a data for a list of child models in a single view.
>
>   To make the code easier to re-use, I would like to keep the views
> for the parent and child separate - as they would be normally for each
> controller, but I would still like to have these views exist on the
> same page at the same time.
>
>   As I understand it cakephp cannot do composition in this way, so
> have to resort to renderElement.
>
>   Unfortunately, renderElement does not have the access to the data as
> the view does, so I cannot use the same style of form construction
> that can be used with individual views?
>
>   Is there a way to nest views by composition, or is there a
> workaround other than requestAction that would let me display a page
> that I can edit parents and children on the same page without having
> one giant form / view file...
>
>   Thanks
>
>   Glen
>
>
> >
>


-- 
[livesets] http://djspark.com.br/
[web] http://sydi.net
[filmes] http://melhoresfilmes.com.br

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

Reply via email to