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();
 }
Example #3
0
 public function configure()
 {
     parent::configure();
     unset($this['created_at'], $this['updated_at']);
     $this->configure_specific();
 }