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