/**
  * Add the cancel button
  */
 protected function addButtons()
 {
     $this->addPreviousButton();
     $this->addNextButton();
     $element = new \MUtil_Form_Element_Exhibitor('button_spacer');
     $element->setValue(' ');
     $element->setDecorators(array('ViewHelper'));
     $this->_form->addElement($element);
     $this->addCancelButton();
     $this->addFinishButton();
     $this->_form->addDisplayGroup(array($this->_previousButton, $this->_nextButton, $element, $this->_cancelButton, $this->_finishButton), 'buttons');
     $group = $this->_form->getDisplayGroup('buttons');
     $group->removeDecorator('DtDdWrapper');
     $group->removeDecorator('HtmlTag');
 }
Example #2
0
 /**
  * Constructor
  *
  * $spec may be:
  * - string: name of element
  * - array: options with which to configure element
  * - \Zend_Config: \Zend_Config with options for configuring element
  *
  * @param  string|array|\Zend_Config $spec
  * @param  array|\Zend_Config $options
  * @return void
  * @throws \Zend_Form_Exception if no element name after initialization
  */
 public function __construct($spec, $options = null)
 {
     parent::__construct($spec, $options);
     $this->addClass($this->_elementClass);
 }