Zendフォームを使い始めましたが、どうすればよいですか?
<button id="show" type="button">
<img width="18" height="18" alt="Calendar" src="assets/calbtn.gif">
</button>
Zend_Form_Buttonを使用します。
私はこれを試しましたが、うまくいきませんでした:
$btn = new Zend_Form_Element_Button('show');
$btn->removeDecorator('DtDdWrapper');
$btn->setLabel(' ');
$btn->addDecorator('Label', array('HtmlTag',array('tag'=>'img','placement'=>'append','src'=> 'assets/img.gif')));