Creating your first Coldfusion Component Step 1
Coldfusion Components (CFC)
(1) All CFC's have the .cfc extension
Coldfusion Components usually contain one or more functions/methods.
Function: a block of code that performs an operation & usually returns a result. Tag <cffunction> </cffunction>
This tag has several attributes BUT only 2 are really important.
(1) name: your name of the function. This has to be unique for your component. You can reuse the name in a diffrent component.
(2) returntype: basically the results you would like returned. String, Date, Array, Query etc...
EXAMPLE 1
<cfcomponent>
<cffunction name="today" returntype="date">
</cffunction>
<!-- Get Tomamrows Date -->
<cffunction name="tommarow" returntype="date">
</cffunction>
<!-- Get yesterday date-->
<cffunction name="yesterday" returntype="date">
</cffunction>
</cfcomponent>

Recent comments
11 weeks 3 days ago
11 weeks 3 days ago
14 weeks 6 days ago
15 weeks 4 days ago
15 weeks 4 days ago
17 weeks 5 days ago
30 weeks 4 days ago
30 weeks 4 days ago
30 weeks 6 days ago
31 weeks 17 hours ago