View Single Post
  #2 (permalink)  
Old 06-24-2008, 08:26 AM
kamme kamme is offline
Junior Member
 
Join Date: Jun 2008
Posts: 2
Default

I found a solution. Basicly you can do this:

$imageTag = new Zend_Form_Decorator_HtmlTag();
$imageTag->setOption('openOnly', true);
$imageTag->setTag('img');
$imageTag->setOption('src', 'buh.gif');
$imageTag->setOption('placement', Zend_Form_Decorator_Abstract::PREPEND);

and then use addDecorators(array($imageTag)); on whatever form element you want.
Reply With Quote