How does one add a 'plain text node' to a zend form?

后端 未结 7 556
夕颜
夕颜 2021-02-04 02:41

I\'m trying to add a plain text node in a zend form - the purpose is to only dispay some static text.

The problem is - im not aware of any such way to do it.

I

7条回答
  •  离开以前
    2021-02-04 03:10

    This one-liner works for me:

    $objectForm->addElement(new Zend_Form_Element_Note('note', array('value' => 'Hello World')));
    

提交回复
热议问题