setting a default in sfwidgetformchoice

Posted by user334017 on Stack Overflow See other posts from Stack Overflow or by user334017
Published on 2010-06-07T17:30:52Z Indexed on 2010/06/07 17:32 UTC
Read the original article Hit count: 252

Filed under:
|

I have an embedded form with a choice widget. I'm trying to pass a default value from the main form to the widget. I'm trying to pass the value to the form as an option, then once I have it in the embedded form do I just do something like:

new sfwidgetformchoice(array(...,'default' => $this->getOption('default'))

doesn't seem to work

© Stack Overflow or respective owner

Related posts about symfony

Related posts about symfony-1.4