I have table Firm with columns:
id_firm
description
contact
I want 1 textarea in polish for column 'contact' and 1 textarea in
english for column 'contact'. I would like to create form to edit
column 'contact' so I read this site:
http://www.symfony-project.org/jobeet/1_2/Doctrine/en/19
on which was used method configure() to configure form. I would like
to use method setUp() to build form by myself so I have made something
like that:
class ContactForm extends sfFormDoctrine
{
public function setUp()
{
$this->embedI18n(array('pl', 'en'));
$this->widgetSchema->setLabel('pl', 'Polish');
$this->widgetSchema->setLabel('en', 'English');
$this->widgetSchema['contact'] = new sfWidgetFormTextarea();
$this->widgetSchema['contact']->setAttribute('rows', 20);
$this->widgetSchema['contact']->setAttribute('cols', 80);
$this->widgetSchema->setNameFormat('data[%s]');
}
public function getModelName()
{
return 'Firm';
}
}
but $this->embedI18n(array('pl', 'en')); generates 1 textarea in
polish for column 'description', 1 in polish for column 'contact', 1
textarea in english for column 'description' , 1 in english for column
'contact' + 1 textarea without language for column 'contact', why ? I
want only 1 textarea in polish for column 'contact' and 1 textarea in
english for column 'contact'.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---