Im looking for a simple bit of code that will let me add the following html into my zend form:
You can try this way, no config, just one extension class reference: http://www.zfsnippets.com/snippets/view/id/50
* @package elements
*/
/**
* Loads helper Zend_View_Helper_FormNote
*/
class Custom_Form_Element_Note extends Zend_Form_Element_Xhtml
{
public $helper = 'formNote';
}
?>
then
$companies->addElement('note', 'companyNote', array(
'value' => 'Add Company'
));