2008年8月14日星期四

Re: [fw-mvc] Integration of Models

David Toniolo wrote:
>
> I thought about how to use models from a controller without using new
> operator in controllers.
>

Interesting thought experiment, but why? Explain why you need to avoid
using 'new' when instantiating objects in controllers.

Proxy is a fine pattern, but why not use a Factory to generate model objects
instead? Explain your choice of design pattern.

Regards,
Bill Karwin
--
View this message in context: http://www.nabble.com/Integration-of-Models-tp18985795p18986018.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: