Hi,

In a form I use a simple choice widget:

$this->widgetSchema['type'] = new sfWidgetFormChoice(array(
        'choices'  => sfAdvertisePeer::getTypesChoices(),
        'expanded' => true,
));

and then I want to check a default value:

$this->setDefault('type', 0);


The code above is the configure() function.


In the frontend application, it does work, the first radio button is
selected.
In the backend application which is a CRUD one, the default value is
not selected. So I guess, the code to determine default value is not
the same with the admin generator. How can I overwrite it?


TIA,

François CONSTANT
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to