View Single Post
  #2 (permalink)  
Old 03-28-2008, 12:44 PM
friedhelm friedhelm is offline
Junior Member
 
Join Date: Mar 2008
Posts: 12
Default

Quote:
Originally Posted by notrub225 View Post
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
Reply With Quote