コード例 #1
0
 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]');
 }
コード例 #2
0
 public function configure()
 {
     parent::configure();
     // Unset automatic fields like 'created_at', 'updated_at', 'created_by', 'updated_by'
     $this->unsetAutoFields();
 }
コード例 #3
0
ファイル: CommentForm.class.php プロジェクト: rgevaert/uas
 public function configure()
 {
     parent::configure();
     unset($this['created_at'], $this['updated_at']);
     $this->configure_specific();
 }