Re: To object or not to object

2006-10-18 Thread Nathan Strutz
what you said. 2: In my opinion, anything that keeps things simpler, or at least looking simpler, is better. Caching your #foo# object is a good idea, but why put that logic on your cfm templates? What if you generate foo in the pg.method(), and have it return it every time. cache it in the CFC's

To object or not to object

2006-10-17 Thread Charles Sheehan-Miles
, it processes the logic (which exists in a application scoped page processing CFC). The I had the bright idea ‹ what if I created it as an object instead: cfoutput#application.pg.method(parameters)/cfoutput -- processes every time Vs. cfif Not IsDefined(³application.foo²cfset application.foo