-- Greg Donald <[EMAIL PROTECTED]> wrote (on Monday, 21 April 2008, 03:20 PM -0500): > Is Zend_Db the "model" portion of ZF?
No, it's not. It's a potential storage mechanism for a model, but not the model itself. Consider that in today's web 2.0 world, your data need not come from just a database, but from a variety of web services as well, and you'll see why I answer this way. > If so, where does one define data validations? I found Zend_Validator > but it doesn't seem to be used with Zend_Db in any of the > documentation I've read up to now. Wouldn't the two go hand in hand? > What am I missing here? Is there other documentation not listed on > the Zend site? I'd recommend building a model class with a public API you need for accessing your data store. This is more of a Domain Model, and a better locaion to put your data validation -- which you can do by integrating Zend_Filter_Input or Zend_Form into your model as well. -- Matthew Weier O'Phinney Software Architect | [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
