Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Form_Paper extends Zend_Form
- {
- public function init()
- {
- $labels = self::getLabels();
- $this->addElement(new Zend_Form_Element_Hidden('p_id'));
- $this->addElement(
- new SEPOPE_Form_Element_Text('p_name', array(
- 'label' => $labels['p_name'],
- 'class' => 'input',
- 'required' => true
- ))
- )
- ->addElement(
- new SEPOPE_Form_Element_Text('p_coauthor', array(
- 'label' => $labels['p_coauthor'],
- 'class' => 'input',
- 'required' => false
- ))
- )
- ->addElement(
- new SEPOPE_Form_Element_File('p_file', array(
- 'label' => $labels['p_file'],
- 'class' => 'input',
- 'required' => true,
- ))
- )
- ->setElementDecorators(array(
- array('ViewHelper'),
- array('Errors', array('class' => 'error')),
- array('Label', array()),
- ));
- }
- }
Add Comment
Please, Sign In to add comment