开发者

set $value in sfWidgetFormSelectDoubleList

开发者_如何学运维

Actually I am using the sfFormExtraPlugin in symfony 1.4.4

I am using the class widget sfWidgetFormSelectDoubleList, all seems fine but when I open the form again in edit mode, There is nothing in associated select box.

So, My question is How to fill associated values in that box using sfWidgetFormSelectDoubleList widget?

I checked the database & values are present there.


$yourWidget->setDefault($values);

Values is an array with the values selected.

Good luck!!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜