September 2007
Intermediate to advanced
600 pages
20h 21m
English
ColdFusion Components are defined using a tag named <cfcomponent>. (Intuitive, eh?) All of the code that makes up the CFC must be placed in between <cfcomponent> and </cfcomponent> tags (Listing 11.2). Nothing may be placed before the opening <cfcomponent> or after the closing </cfcomponent>.
<!--- This is the introductory CFC ---> <cfcomponent> </cfcomponent> |
Once you have typed in this code, save your new file as intro.cfc. You have just created a ColdFusion Component. It does absolutely nothing at this point, but it’s a ColdFusion Component nonetheless.
Tip
I just stated that nothing can be before the opening <cfcomponent> or after the closing </cfcomponent>, but as you ...
Read now
Unlock full access