Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class VideoForm extends BaseVideoForm
- {
- public function configure()
- {
- $this->setWidgets(array(
- 'Titre' => new sfWidgetFormInput(array(),array('name'=>'title')),
- /* 'Description' => new sfWidgetFormTextarea(array(),array('name'=>'desc')),
- 'Titre meta' => new sfWidgetFormInput(array(),array('name'=>'meta_title')),
- 'Mots cles meta' => new sfWidgetFormInput(array(),array('name'=>'meta_keywords')),
- 'Description meta' => new sfWidgetFormInput(array(),array('name'=>'meta_description')),
- 'Tags' => new sfWidgetFormTextarea(array(),array('name'=>'tags')),
- 'Slug' => new sfWidgetFormInput(array(),array('name'=>'slug')),
- // 'Fichier' => new sfWidgetFormInputFile(array(),array('name'=>'path')) */
- ));
- $this->widgetSchema->setNameFormat('video[%s]');
- /* $this->setValidators(array('Titre' => new sfValidatorString(),
- 'Description' => new sfValidatorString(),
- 'Titre meta' => new sfValidatorString(),
- 'Mots cles meta' => new sfValidatorString(),
- 'Description meta' => new sfValidatorString(),
- 'Tags' => new sfValidatorString(),
- 'Slug' => new sfValidatorString(),
- 'Fichier' => new sfValidatorString()
- ));*/
- /* $this->setDefaults(array('Titre' => $this->getObject()->getTitle(),
- 'Description' => $this->getObject()->getDesc(),
- 'Titre meta' => $this->getObject()->getMetaTitle(),
- 'Mots cles meta' => $this->getObject()->getMetaKeywords(),
- 'Description meta' => $this->getObject()->getMetaDescription(),
- 'Tags' => $this->getObject()->getTags(),
- 'Slug' => $this->getObject()->getSlug()
- )); */
- }
- }
Add Comment
Please, Sign In to add comment