Populating Zend_Form_Element_Select options, best practise
Posted: Thu May 26, 2011 4:54 pm
Hey,
Up until about 5 minutes ago I have always populated Zend_Form_Element_Select objects (addMultiOption) in the init() method of the class that extends Zend_Form. All of a sudden it feels a bit wrong and I think I should do that in the controller as it's a better separation of concerns. However this makes the controllers a little bigger so thought I would check here and see what people think.
All comments welcome!!
Up until about 5 minutes ago I have always populated Zend_Form_Element_Select objects (addMultiOption) in the init() method of the class that extends Zend_Form. All of a sudden it feels a bit wrong and I think I should do that in the controller as it's a better separation of concerns. However this makes the controllers a little bigger so thought I would check here and see what people think.
All comments welcome!!