Yes, not quite as easy as in php though. The logic I've used before goes
something like:

<cfparam name="request.included" default="false" type="boolean">

<cfif not request.included>
        <cfinclude template="mytemplate.cfm">
        <cfset request.included = true>
</cfif>

HTH

Alex

> -----Original Message-----
> From: Harry Klein [mailto:[EMAIL PROTECTED]]
> Sent: 08 January 2003 10:00
> To: CF-Talk
> Subject: include_once (PHP)
> 
> 
> Would it be possible to implement this PHP functions in ColdFusion?
> 
> "include_once() and require_once(). they will include() or 
> require() the
> requested file only if the requested file has not yet been included
> previously during the processing of the current request. That 
> way, your
> code will only require a function library _once() during a request."
> 
> Harry Klein
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to