I created an element submit:
$this->addElement('submit', 'button', array(
'ignore' => true,
'label' => 'Update',
'class' => 'btn blue',
));
And now try to set for this element decorator:
$submit = $this->getElement('submit');
$submit->setDecorators(array(
array('ViewHelper'),
array('Description'),
array('HtmlTag', array('tag' => 'div', 'class'=>'submit-group')),
));
Something is wrong in my code because I get fatal error that I call member function setDecorators
on no object?