-- Wil Sinclair <[EMAIL PROTECTED]> wrote
(on Tuesday, 13 May 2008, 08:58 AM -0700):
> That's not entirely true. Anything in ZF can be a model at this point.
> We will be introducing a model formalism in the future, but we'd like to
> capture the flexibility that many projects require for their models to
> do so.
> Greg is right that the Zend_Db tables are the closest thing we have to a
> database-backed model. Also consider the fact that you can use full ORM
> solutions like Propel and Doctrine for your model as well.
And since nobody else said it:
Model !== Database
While most web developers consider the two synonyms, this is
increasingly false in our current network-enabled world. Web services
are more and more often your models -- consider flickr, del.icio.us, S3,
Nirvanix, etc. Additionally, your filesystem could be considered a model
(this is how we indicate our releases on the Framework site itself), as
can config files (I use config files for user management on my personal
site), and so on.
It is because we recognize that the database and model are not
synonymous that we have not yet formalized the Model in our MVC layer.
We will likely create a *very* slim interface, likely with simply
accessors for attaching a data store and input filters/forms, in
upcoming releases; however, we need to determine the value-add of this,
and how it would simplify interactions for ZF developers.
> > -----Original Message-----
> > From: Greg Donald [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 13, 2008 8:48 AM
> > To: [email protected]
> > Subject: Re: [fw-general] MVC - where can I learn more about the
> > "model"?
> >
> > On 5/13/08, Rishi Daryanani <[EMAIL PROTECTED]> wrote:
> > > I have
> > > not yet come across any mention of the "models"
> > > subdirectory.
> > >
> > > Where can I learn more about this and what it's used
> > > for?
> >
> > ZF doesn't have what you may have come to expect as an actual "model"
> > component from other web frameworks. Instead it has Zend_Db and
> > Zend_Db_Table.
> >
> >
> > --
> > Greg Donald
> > http://destiney.com/
>
--
Matthew Weier O'Phinney
Software Architect | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/