The <cfoutput> has to be in the same physical template as the variable call. If it wasn't that way, we would have a lot of trouble with includes and nested <cfoutput>.


There are some other tags that have to be in the same template. <cfquery> and <cfqueryparam> is an example.


Pascal

-----Oorspronkelijk bericht-----
Van: Mickael [mailto:[EMAIL PROTECTED]
Verzonden: vr 7/11/2003 4:52
Aan: CF-Talk
CC:
Onderwerp: Just Wondering Why


My question is this.  Lets say that the value of myvariable is "house"

So when I do this

<cfoutput>
#myvariable#
</cfoutput>

I get an output of house

But when I do this

<cfoutput>

<cfinclude template="dsp_myvariablepage.cfm"> (dsp_myvariablepage.cfm's content is  #myvariable# )

</cfoutput>

I get #myvariable#  instead of house.  If include the template and the content is #myvariable# would it not be in between the two cfoutputs once it is included?



[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to