Nice that the Note Element is being developed. Anyway, could you write the code WITH the DESCRIPTION DECORATOR in order to create that code?

Where is the problem?

// Form
$form = new Zend_Form();

// Element
$form->addElement(
    'text',
    'name',
    array(
        'label'       => 'Name',
        'description' => 'My description with <a href="#">Hyperlink</a>',
    )
);

$form->getElement('name')->getDecorator('description')->setOption('escape', false);

// Render
echo $form->render(new Zend_View());

Reply via email to