Hello

I'm wondering about the best practice for populating forms with model data.

I've been creating my forms with an optional array parameter in the
constructor for the model to be passed in to the form class. If the model is
present, the form is loaded with the models data. This is done from within
the form class that extends zend_form.

I was wondering if this is the best way to create forms, or perhaps the form
should be empty of model data and a view helper populates the form with the
data from the model? Or any other way that can achieve a better separation?


-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/populating-form-from-model-tp2218378p2218378.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to