Cfinclude tag throwing error in cfusion2021
Using cfinclude tag throwing error and recommended to put this.mappings in application.cfc. but how to use that mapping in cfm file with cfinclude tag. Please guide if anyone face smiler issue.
Using cfinclude tag throwing error and recommended to put this.mappings in application.cfc. but how to use that mapping in cfm file with cfinclude tag. Please guide if anyone face smiler issue.
1. Yes, the Includes folder exists under the views folder C:\inetpub\wwwroot\fujairahport\PermanentPass\views\? then the file breadCrumb.cfm does exist under the Includes folder.
2. Only Yousaf is here rest moved from here.
You can do it in at least 2 ways. The first way is preferable, as it maps directly to the includes.
1st way:
<!--- In Application.cfc --->
<cfset this.mappings[ "/includes" ] = "C:/inetpub/wwwroot/fujairahport/PermanentPass/views/includes/" ><!---In any CFM page in the application --->
<cfinclude template="/includes/breadCrumb.cfm" >
2nd way:
<!--- In Application.cfc --->
<cfset this.mappings[ "/views" ] = "C:/inetpub/wwwroot/fujairahport/PermanentPass/views/" >
<!---In any CFM page in the application --->
<cfinclude template="/views/includes/breadCrumb.cfm" >
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.