Zend_Form: Is this really the way we should be doing things?
Posted
by Francis Daigle
on Stack Overflow
See other posts from Stack Overflow
or by Francis Daigle
Published on 2010-06-03T17:22:57Z
Indexed on
2010/06/03
17:24 UTC
Read the original article
Hit count: 195
best-practices
|zend-form
OK. I understand how to use Zend_Form and it's implementation of the decorator pattern. My question is, is this the best way to be going about creating forms? Shouldn't a documents forms be left to to the front-end rather than generating forms programmatically? Doesn't this kinda violate the whole idea of keeping things separate? I mean, really, even providing that you have a good understanding of the methodology being employed, does it really save one that much time?
I guess what I'm looking for is some guidance as to what might be considered 'best practice'. I'm not saying that Zend_Form doesn't have it's place, I'm just wondering if it should be used in all cases (or not). And this has nothing to do with validation. I'm just thinking that something more akin to using the 'ViewScript' approach might be more appropriate in most cases. Your thoughts?
© Stack Overflow or respective owner