Guest User

Untitled

a guest
Jun 21st, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. class VideoForm extends BaseVideoForm
  2. {
  3. public function configure()
  4. {
  5. $this->setWidgets(array(
  6. 'Titre' => new sfWidgetFormInput(array(),array('name'=>'title')),
  7. /* 'Description' => new sfWidgetFormTextarea(array(),array('name'=>'desc')),
  8. 'Titre meta' => new sfWidgetFormInput(array(),array('name'=>'meta_title')),
  9. 'Mots cles meta' => new sfWidgetFormInput(array(),array('name'=>'meta_keywords')),
  10. 'Description meta' => new sfWidgetFormInput(array(),array('name'=>'meta_description')),
  11. 'Tags' => new sfWidgetFormTextarea(array(),array('name'=>'tags')),
  12. 'Slug' => new sfWidgetFormInput(array(),array('name'=>'slug')),
  13. // 'Fichier' => new sfWidgetFormInputFile(array(),array('name'=>'path')) */
  14. ));
  15. $this->widgetSchema->setNameFormat('video[%s]');
  16. /* $this->setValidators(array('Titre' => new sfValidatorString(),
  17. 'Description' => new sfValidatorString(),
  18. 'Titre meta' => new sfValidatorString(),
  19. 'Mots cles meta' => new sfValidatorString(),
  20. 'Description meta' => new sfValidatorString(),
  21. 'Tags' => new sfValidatorString(),
  22. 'Slug' => new sfValidatorString(),
  23. 'Fichier' => new sfValidatorString()
  24. ));*/
  25. /* $this->setDefaults(array('Titre' => $this->getObject()->getTitle(),
  26. 'Description' => $this->getObject()->getDesc(),
  27. 'Titre meta' => $this->getObject()->getMetaTitle(),
  28. 'Mots cles meta' => $this->getObject()->getMetaKeywords(),
  29. 'Description meta' => $this->getObject()->getMetaDescription(),
  30. 'Tags' => $this->getObject()->getTags(),
  31. 'Slug' => $this->getObject()->getSlug()
  32. )); */
  33.  
  34.  
  35. }
  36.  
  37. }
Add Comment
Please, Sign In to add comment