2011年1月31日星期一

Re: [fw-mvc] Alternate location for models

The only hard and fast rule about models, is that there is no hard and fast
rules. Every situation is different. If you're going for an old fashioned
active record approach, it sort of makes sense to maybe put them in a
directory called model (still very debatable if this is called a "model").

I tend to put my *domain* objects in a directory called domain, under my
library.

On Tue, Feb 1, 2011 at 2:43 AM, Joe Balancio <jlbalancio@gmail.com> wrote:

>
> Is it generally a hard fast rule that models should be placed in the web
> app's models folder? Or web app's module's models folder?
>
> What are some use cases where the models can be placed elsewhere, like the
> library?
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Alternate-location-for-models-tp3250615p3250615.html
> Sent from the Zend MVC mailing list archive at Nabble.com.
>
>

没有评论: