Question
Accessing CFMODULE variable scope
If you have a ColdFusion template which calls another
template within a CFMODULE tag, can you later access variables set
in the CFMODULE tag from the caller template? I am aware of the
CALLER scope within CFMODULES however, I was wondering if there is
a scope to go the other direction so templates can get the
variables within the cfmodule?
For example:
---SecondPage.cfm---
<CFSET Apples="yes">
---End---
---FirstPage.cfm---
<CFMODULE template="secondpage.cfm">
The value for apples is: <CFOUTPUT>#[scope].Apples#</CFOUTPUT>
---End---
For example:
---SecondPage.cfm---
<CFSET Apples="yes">
---End---
---FirstPage.cfm---
<CFMODULE template="secondpage.cfm">
The value for apples is: <CFOUTPUT>#[scope].Apples#</CFOUTPUT>
---End---
