How to define the variables and include files from coldfusion?

24.04.19 10:41 AM Comment(s) By alokjasmatiya99

“Includes” file is a very basic concept of the ColdFusion framework. It is a very common concept in the C, C++, Java and PHP languages also.

An “include” is a file that can be used to show the multiple templates in a similar block of code. Like - if your website uses same header and footer, then they can be used in the same for each of the files.

<cfinclude> tag is used to involve include files. There is an incredible point in this tag, that it does not have the need for the closing tag. It is required only the attribute value.  

After <cfinclude> tag, another important component of ColdFusion framework is variable declaration. It works like a container that stores a value.

Variables are used to store many kind of values like - a page name of user visiting, to see its default value etc. The application performs its action after inserting the value of the variable.

To initiate the variables in ColdFusion, <cfset> tag is used and to see its output it is necessary to use the <cfoutput> tag.
Hope you have liked this post ! Thanks for reading it !

reference links - 

Get Started Now
Share -