[symfony-users] Re: form->Render() when embedding?

2009-11-09 Thread Gareth McCumskey
render() ?> render() ?> Documentation is a wonderful thing: http://www.symfony-project.org/forms/1_2/en/03-Forms-for-web-Designers#chapter_03_sub_using_the_render_method_on_a_field On Mon, Nov 9, 2009 at 3:35 AM, cosmy wrote: > > Hi all, > I was asking my self... how do I do to access embedde

[symfony-users] Re: form->Render() when embedding?

2009-11-09 Thread cosmy
Yes documentation is a great thing but maybe i haven't explained well the situation. I don't want to access the widget of the main form but a child one. My form embed several forms of the same class, so the widgets of these forms have the same names, but not the forms (I numerate them while embedd

[symfony-users] Re: form->Render() when embedding?

2009-11-09 Thread Gareth McCumskey
My apologies for misunderstanding. Have you perhaps just tried: render() ?> On Mon, Nov 9, 2009 at 4:59 PM, cosmy wrote: > > Yes documentation is a great thing but maybe i haven't explained well > the situation. > I don't want to access the widget of the main form but a child one. > My form emb

[symfony-users] Re: form->Render() when embedding?

2009-11-09 Thread Gareth McCumskey
Of course one other way of seeing what the $form object contains is just doing a var_dump($form); and working back from there On Mon, Nov 9, 2009 at 4:59 PM, cosmy wrote: > > Yes documentation is a great thing but maybe i haven't explained well > the situation. > I don't want to access the widge

[symfony-users] Re: form->Render() when embedding?

2009-11-09 Thread Germana Oliveira
I dont know if im right but i think you want to do this: $form['embedded form']['widget']->render() Gareth McCumskey escribió: > Of course one other way of seeing what the $form object contains is > just doing a var_dump($form); and working back from there > > On Mon, Nov 9, 2009 at 4:59 PM

[symfony-users] Re: form->Render() when embedding?

2009-11-16 Thread Antoine S.
Hi, I wrote a function that I use quiet often. It displays the php code to decompose a form. It might help with the embed form, the i18n and the hidden field : class myTools{ public static function getFormFields( $form ) { self::__getFormFields($form); } private static function __g

[symfony-users] Re: form->Render() when embedding?

2009-11-16 Thread kowal grzes
In view file: foreach($form->getEmbeddedForms() as $formName => $embeddedForm) { and here you just render it or use partial here. } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post t