Quote:
Originally Posted by notrub225
What is the simplest, most default way of adding labels to the input fields of a Zend_Form?
|
Playing around with Zend_Form, I tend to subclass my forms and use the fluent interface:
Code:
$nameInput = new Zend_Form_Element_Text('name');
$nameInput->setLabel('name')
[...]
But I am very new to ZF, so I don't know, if this is the simplest, most default way to add labels.
Maybe there is no such 'most default way' ?
/friedhelm