abstract class BaseSellerForm extends BaseFormDoctrine
{
public function setup()
{
$this->setWidgets(array(
'id' => new sfWidgetFormInputHidden(),
'name' => new sfWidgetFormInputText(),
'commission' => new sfWidgetFormInputText(),
'active' => new sfWidgetFormInputCheckbox(),
'is_default' => new sfWidgetFormInputCheckbox(),
));
is_default
应该是一个单选按钮,因为只有一个字段必须进行检查,但我不知道如何将其更改为单选按钮,是搜索约sfWidgetFormSelectRadio
没有成功。
价值从何而来?教义?或者你有他们的定义? – qais 2012-07-20 07:23:14