It is stupid that they don't have an easy way to prepend or append HTML code.
Let's say: why would I use a callback decorator OR View SCript Decorator, in
order to prepend this:
"[MY ELEMENT GOES HERE]<div class="class"><span></span><a
href="URL">TEXT<span></span></a></div>"
Do you consider this is a complicated HTML code? If not, why would I create a
new function OR file in order add this code, and not simply say something like
this:
$form->addElement('text', 'element-name', array('suffix'=>'MY-CODE-GOES-HERE'));
--- On Fri, 2/18/11, Frank DiRocco <[email protected]> wrote:
From: Frank DiRocco <[email protected]>
Subject: Re: [fw-general] Zend Form Element: prepend arbitrary HTML
To: "Zend Framework" <[email protected]>
Date: Friday, February 18, 2011, 4:35 PM
On Feb 18, 2011, at 8:18 AM, Andrei Iarus wrote:
> Is there any SIMPLE way to add some HTML code after or before an element?
> If not, I find it stupid... simply because most developers need a standard
> decorator for that.
what is stupid about Zend_Form_Decorator?
http://framework.zend.com/manual/en/zend.form.decorators.html