In my main page, I use <cfinclude> tag to include my header and footer.
But I get error. "Context validation error for the cfif tag.
The start tag must have a matching end tag. An explicit end tag can be provided by adding </cfif>. If the body of the tag is empty, you can use the shortcut <cfif .../>. "
If I put the three files into one big file without using <cfinclde> tag, the page display with no error.
Here is my code:
- <cfinclude template="copyrights_header.cfm">
-
<!--- Start page content. --->
-
My Main Page
-
<!--- end page content --->
-
<cfinclude template="copyrights_footer.cfm">
-
My header code:
My footer code:
- </td>
-
</tr>
-
</cfif>
-
<tr align="center" valign="bottom">
-
<td>
-
<cfinclude template="#application.settings.layout#/inc_feedback_form.cfm">
-
</cfoutput>
-
<tr valign="top">
-
<td><tr align="center" valign="bottom">
-
<td>
-
<cfelse>
-
<B>The Site is currently under construction. Please visit us later. Thank you.</B>
-
</cfif>