public function configure() { parent::configure(); $this->setWidgets(array('body' => new sfWidgetFormTextarea())); $this->setValidators(array('body' => new sfValidatorString())); $this->embedForm('Commenter', new CommenterForm($this->getObject()->getCommenter())); $this->widgetSchema->setLabel('body', 'Your Comment'); $this->widgetSchema->setNameFormat('comment[%s]'); }
public function configure() { parent::configure(); // Unset automatic fields like 'created_at', 'updated_at', 'created_by', 'updated_by' $this->unsetAutoFields(); }
public function configure() { parent::configure(); unset($this['created_at'], $this['updated_at']); $this->configure_specific(); }