I try to put some HTML link behind input text and I try to do it's somthing like this:
$aElements[$iKey] = $oName = new Zend_Form_Element_Text($aValue['newsletter_question_answer_id']);
$oName->addDecorator('HtmlTag', array(
'tag' => 'a',
'href'=>'http://some_url.html',
'placement' => Zend_Form_Decorator_Abstract::APPEND
));
and my question is how can I put somthing between <a>
and </a>
?
Best Regards
If You don't want to write Your own decorator You have to use callback:
Ofcourse it's php5.3 style callback, but You can use oldstyle too.