Hi,

W dniu 20 grudnia 2010 15:42 użytkownik Michał Piotrowski
<[email protected]> napisał:
> Hi,
>
> I've got a field
> echo $form[$lang]['title']->render()
>
> and I want to set default value. Usually I use setDefault, but this is
> i18n form so
> $form->setDefault('title', "random title")
> doesn't work as for other fields.
>
> I've found a solution for symfony 1.1
> $form->setDefault($lang, array('title', "random title"))
> but it also doesn't work.
>
> I checked an API
> http://trac.symfony-project.org/browser/branches/1.4/lib/form/sfForm.class.php#L782
> and can't find anything related to i18n there.
>
> Any hints?
>
> It might be an obvious thing - but I never used i18n forms before and
> I can not find anything related to this topic in docs.
>

I think that this patch can help solve my problem
http://trac.symfony-project.org/ticket/9132

Is there a chance for including it in symfony 1.4.9?

-- 
Best regards,
Michal

Sent from my fscking awesome Black Hole Generator

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" 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/symfony-devs?hl=en

Reply via email to