Sorry, there was a cAsE problem in my code.
You can populate any form field rendered by the html helper setting
$this->data['Model']['field'] = 'value';
on the controller.

Even when you're rendering it inside an element.

On 19 dez, 17:06, "guigouz" <[EMAIL PROTECTED]> wrote:
> Hello
>  I've created some forms using the html helper, then, I set something
> like $this->data['User'] = $someuser; on the controller, and it gets
> populated automatically. Now I've created an element that renders a
> form. Is there any way to autopopulate it ? Which variable should I set
> when calling renderElement() ?
> 
> thanks
> 
> gui


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