0

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.

0

1 Answer 1

1

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

Last one should be of particular interest.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.