0

TEXT-INPUT フィールド (属性 VALUE) を事前に定義したいと考えています。setupメソッドの他のオプションのsfWidgetFormInputTextでそれを行うことは可能ですか?

4

1 に答える 1

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'));
  }
}
于 2012-04-10T18:27:52.517 に答える