2010年11月29日星期一

[fw-mvc] Re: How to instantiate a model class to use its functions, standard solution?

I would not say that "filter" is a model. It is, as it's name implies, a
filter. :-)

Colour and length are attributes that you'd be filtering. In your case, the
filter happens to be expressed via sql table joins. That is, unless you're
selling air filters, in which case I think I've misunderstood your problem
:-)

Unless you've got a big system with many (relatively independent) parts,
then modules is probably not what you need. AFAICT, other than organising
and grouping code, they don't offer much of an advantage over just using
controllers.

David
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/How-to-instantiate-a-model-class-to-use-its-functions-standard-solution-tp3054833p3063519.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: