I'm trying to put together a footer in ColdFusion using a component. I want to be able to re-use the footer throughout my application, but only have to write the footer HTML once.
Here's what I have so far, but I'm unable to output the content.
<cfcomponent>
<cffunction name="getFooter" access="public" returntype="string" output="yes">
<footer>
<div class="row text-center">
<div class="col-sm-12">
Copyright © 2020 Company Name | <a href="#" data-toggle="modal" data-target="#msgPrivacy"> Security and Privacy </a>
</div>
</div>
</footer>
</cffunction>
</cfcomponent>
<cfoutput>
#getFooter#
</cfoutput>
I created a cffidle here.
Footer.cfc
testPage.cfm