>> >> >> Also, has anyone had any negative reaction to loading a >> CFC into server >> >> scope? >> >> > Note that you cannot output HTML from methods of CFCs that >> are stored >> > in shared scopes (but, hey, you wouldn't be outputting HTML >> from CFCs >> > anyway, would you?). >> >> How does that happen? I can't store a CFC in the application >> scope and use >> writeoutput() in a method to display stuff from it? ... Or
> Correct. Or <cfoutput> for that matter. This is a known bug. Oh, so there's a plan for this to change in the future... cool. :) >> for that matter >> >> <cfoutput>#application.mycfc.mymethod()#</cfoutput> >> >> and simply have the method return a string? > If the method RETURNS a string, then it will work ok. > I.e., this is good: > <cfreturn "You go, girl"> > This is not: > <cfoutput>You go, girl</cfoutput> > The second example will work on the first hit only. As it stands, many > people (myself included) think it's a bad idea to directly output from > the method. But - that's another discussion... I think in most cases you're probably right -- it's probably best to stick with the integrity of the "function metaphor" -- multiple arguments, singular result. S. Isaac Dealey Certified Advanced ColdFusion 5 Developer www.turnkey.to 954-776-0046 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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

