This is one of those situations where I think people are making CF too Java-esque. Obviously the thought from Macromedia was that they would output stuff otherwise, I wouldn't have to put Output="false" on every frickin function I write.
MVC doesn't rely on the underlying language, so I don't think you'd be breaking any kind of MVC rule. Afterall, there were ways of doing MVC before CFC's came out. I liken it to the discussion about interfaces in CF. Now more people are beginning to realize that you don't need them. CF has a different way of dealing with it and they realize the strength of that way now. So, my thoughts are if you can figure out a way to use CFC's to output parts of your app and it makes it easier to create/maintain/extend, go for it. It's people that push the boundaries that come up with innovative solutions. On 1/16/06, Mike Soultanian <[EMAIL PROTECTED]> wrote: > From what I've read, it can obviously be done, but it's just bad form. > MVC doesn't have to be adhered to either, but it does make your life > easier in code reusability and maintainability. > > mike > > Ian Skinner wrote: > > "Well, the generally accepted "best practice" is that CFCs should *not* > > output anything..." > > > > WHY??? > > > > I understand why one would not want to mix display functionality with other > > layers of logic, and I am trying to learn how to separate my coding along > > these lines. But nobody has explained to me why it is "inherently" bad to > > do display in a CFC as long as that is the purpose of that CFC. Is there > > something wrong with creating a display CFC for ones view layer? > > > > -------------- > > Ian Skinner > > Web Programmer > > BloodSource > > www.BloodSource.org > > Sacramento, CA > > > > "C code. C code run. Run code run. Please!" > > - Cynthia Dunning > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229730 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54