>Indeed, separating logic from display is important. Too often people
>assume that if you are outputting directly from a CFC then you are not
>doing this. That is a wrong assumption that should be avoided.

The original question was "Trying to write a function that performs
a query based on specific arguments then outputs a select box based upon
the query results as well as some of the other arguments."

All this in one function means it's not n-tier or MVC.

>Agreed, but if you recall, I never really answered the person's
>question, but instead took issue with responses to it. Just because
>someone might not understand the entire landscape surrounding an issue
>is no reason to give them incorrect information.
>
>-Matt

Yes, that is true, just fueling the fire.

My response "CFC's, and especially web services, are generally considered 
to be used for
data access or business logic, not for any type of display." is what you 
responded to.

So, where is the incorrect information?  That CFC's are "generally 
considered" to be used for data access/business tier?  That is true, they 
are mostly used for that.  Never said they can't be used for display--even 
provided details on how to do it later on in the same post--just said they 
usually aren't.

Sam


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to