Hi.
First, the code:
// Add button
$submit = new Zend_Form_Element_Button(array(
'name' => 'quick-search-submit',
'content' => ' Traži',
'class' => 'ui-corner-all ui-button ui-state-default'
));
$submit->setDecorators(array('ViewHelper'));
$this->addElement($submit);
I tried with setValue as well, but all I get is :
<button id="quicksearchsubmit" class="ui-corner-all ui-button
ui-state-default" type="button"
name="quicksearchsubmit">quicksearchsubmit</button>
rendered!?
How can I actually add html content to my button?
--
View this message in context:
http://www.nabble.com/Adding-content-to-Zend_Form_Element_Button-tp25641485p25641485.html
Sent from the Zend Framework mailing list archive at Nabble.com.