Is there a ColdFusion equivalent to PHP for include_once?
Posted
by davidosomething
on Stack Overflow
See other posts from Stack Overflow
or by davidosomething
Published on 2010-03-25T16:59:59Z
Indexed on
2010/03/25
17:53 UTC
Read the original article
Hit count: 402
coldfusion
|includes
I've been adding this to my pages:
pagewithinclude.cfm
<cfinclude template = "_pagename.cfm">
_pagename.cfm
<cfif Not IsDefined("variables.included_pagename")>
<cfparam name = "variables.included_pagename" default = "1">
rest of page
</cfif>
Is there a better way in CF? Something similar to PHP's include_once?
© Stack Overflow or respective owner