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.
--
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 users" 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-users?hl=en