You can do that by using the HtmlTag decorator with the placement option.
e.g. $element->addDecorator('HtmlTag', array('tag' => 'div', 'placement' =>
'APPEND'));But be aware that you can't have 2 decorators of the same type. An easy workaround would be to create your own decorator as a subclass of HtmlTag, and use it. Or while at it, just make a specialized DivAppender decorator ;) It should be pretty simple, look at DtDdWrapper decorator for an example. It's something like return $content .'<div></div>'; Cheers, - Amr On Jan 26, 2008 5:55 PM, Jay M. Keith <[EMAIL PROTECTED]> wrote: > Hi all, > I've been messing around with Zend_Form and I'm happy thus far. > But, I'm having an issue with what I think should be an easy task. > I like the current rendering in dl's.. But I'm trying to add a div or > span immediately after the <input> tag to be a field note/description. > Here's my desired result: > > <dt><label for="username">Username</label></dt> > <dd><input type="text" name="username" id="username" value="" /><div > class="form-note"> Minimum of 4 characters, Maximum of 32 > characters.</div></dd> > > I've been trying a variety of different methods including using my own > decorators. For some reason I imagined that a simple modification > like this would be a bit easier to do. > Any recommendations? I started writing up another decorator to be a > Hint/Desc/Note area, but wanted to see if there was a different > approach. > > Regards, > Jay M. Keith >
