Really? <cffunction name="include"> <cfargument name="template"> <cfinclude template="#template#"> </cffunction>
Boy, that was hard. ;) Normally I'd define returntype, type on the argument, etc. ======================================================================== === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Tyler Silcox [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 08, 2003 8:21 AM > To: CF-Talk > Subject: RE: GetPageContext() function...cfinclude from a cfscript? > > > I've tried that and it's a pain in the arse... > > -----Original Message----- > From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 08, 2003 9:26 AM > To: CF-Talk > Subject: RE: GetPageContext() function...cfinclude from a cfscript? > > If you want an include function for use w/CFSCRIPT, in CFMX > you could just create a UDF that uses the <CFINCLUDE> tag. > > -Dan > > > -----Original Message----- > > From: Tyler Silcox [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, July 08, 2003 8:56 AM > > To: CF-Talk > > Subject: GetPageContext() function...cfinclude from a cfscript? > > > > Could someone please explain what GetPageContext() does within CFMX? > > I just came across it in one of the other posts and it got > me thinking > > about using > > GetPageContext().include("somefile.cfm") for cfincludes within > > cfscripts, but it doesn't seem to share the same memory/variables > > (which, I guess, could be a benefit.) What is possible > with this tag? > > Is it slow? What other functions are available, etc? I've > gotta know! > > > > Tyler > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4