I can see that causing problems.. I have never used an include within a CFC.. just stick the mailer code within the cfc itself.. by accessing code outside the cfc you are actually making the code harder to follow for future upgrades.. keep the cfc self contained, and thereore reusale.
u could alway make the CFC return a variable (using CFRETURN) which tells the current page you are on to include the mailer template it the variable is true
.
.
<!--- page code --->
<CFINVOKE Compont = "YourComp">
<CFIF ReturnedVariable EQ "True">
<CFINCLUDE TEMPLATE="Mailer.cfm">
</CFIF>
Main Topics
Browse All Topics





by: pinaldavePosted on 2005-09-15 at 09:57:40ID: 14891076
Hi thirdalarmpro,
Just a note. I have never tried that, I do not use cfinclude like that.
I would rather convern all the content of the cfinclude and create function for it and call the function.
Regards,
---Pinal