I'm having some issues trying to get some two form buttons to display on the
same line. 

My form code looks like this:

      $submit = new Zend_Form_Element_Submit('submit');
      $submit->setLabel('save');

      $clear = new Zend_Form_Element_Reset('reset');
      $clear->setLabel('clear');

      $form->addElements(array($user_id, $user_type, $submit, $clear));
      $form->addDisplayGroup(array('submit',
'clear'),'buttons',array('disableLoadDefaultDecorators' => true));

      $buttons = $form->getDisplayGroup('buttons');
      
      $buttons->addDecorators(array(
      array('ViewHelper'),
      array('Description'),
      array('HtmlTag',array('tag' => 'div','class' => 'buttons')),
      ));
      return $form;

This throws the following error:

Fatal error: Call to undefined method Zend_Form_DisplayGroup::getType()

Any help appreciated.

chinaski
-- 
View this message in context: 
http://www.nabble.com/zend_form-group-decorators-tp17029756p17029756.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to