我想预定义TEXT-INPUT字段 - 属性VALUE。是否可以通过设置方法中的其他选项的sfWidgetFormInputText来做到这一点?
答案 0 :(得分:2)
class ContactForm extends BaseForm
{
public function configure()
{
// ...
$this->setDefault('email', 'Your Email Here');
$this->setDefaults(array('email' => 'Your Email Here', 'name' => 'Your Name Here'));
}
}