Howdy, I'm having trouble with one of my fields in a form. I've got a
section of code in my form php
$isCitizen = array(
True => 'Yes',
False => 'No',
);
$this->widgetSchema['citizenship'] = new sfWidgetFormChoice(array(
'choices' => $isCitizen,
'multiple' => false,
'expanded' => false,
));
which turns a checkbox into a drop down for Yes and No, but it always shows
up as being Yes when the page loads by default regardless what it is in the
database (even though it updates in the DB when saved) Any idea how to fix
this to populate from the database?
--
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