On 22 Apr 2008, at 15:43, David Mintz wrote:
I am glad to hear Matthew say this about locating data validation in
the model because that's what I usually do. (-: I think the
reasoning is, the model's business is data and therefore it should
know what is valid data.
You might say -- would you not ? -- that a model class might extend
Zend_Db_Table_Abstract or Zend_Db_Table_Row_Abstract, but not
necessarily. Lately my own practice is to extend both. I have e.g.,
a Things class and a Thing class. The plural, for operations like
batch inserts, locating rows. The latter for data validation,
updates, etc. I don't mind thus binding myself to a db backend
because that is the way this app is going to be.
I agree completely. Some of my models extend Zend_Db_Table_Abstract/
Zend_Db_Table_Row_Abstract and some don't
Regards,
Rob...