Can you isolate code from being seen from CF10 compiler?

后端 未结 1 841
面向向阳花
面向向阳花 2021-01-14 18:56

So I\'m new to coding in coldfusion, this being my second month, so bear with me on this.

My employer\'s client wants to upload multiple files handling errors smooth

相关标签:
1条回答
  • 2021-01-14 19:41

    Use <cfinclude>.

    <cfif SERVER.ColdFusion.ProductVersion gte 11>
        <cfinclude template="newWay.cfm">
    <cfelse>
        <cfinclude template="oldWay.cfm">
    </cfif>
    

    This is how cfbackport does it: https://github.com/misterdai/cfbackport/blob/master/cfbackport.cfm

    0 讨论(0)
提交回复
热议问题