views:

37

answers:

1

How can I create Zend Form Element implements A html tag not INPUT. I need create something like that:

$Link = new Zend_Form_Element_Link(
    $field_name,
    array( 'label'=>'THIS IS LINK', 'href'="#", 'other_attrs' => array() )
);

Do I should use loadDefaultDecorators function or either?

This Link element is not actually related to the Form, it's just simple link to be rendered in Zend Form.

+1  A: 

See this series of articles by Matthew Weier O'Phinney:

Last one should be of particular interest.

Gordon
Thank you, it's very help me
HWTech