<cfscript> tag is required to indicate to the server that you are about to 
provide CF Script.   So everything between the <CFSCRIPT> and </CFSCRIPT> tags 
is interpreted as script.  Otherwise, if you don't have that, the CF Server 
doesn't know to interpret the text as script and would simply display it to the 
screen.

<cfscript>

.... your cf script code goes here ....

</cfscript>

-----Original Message-----
From: John Barrett [mailto:[email protected]] 
Sent: Monday, October 08, 2012 12:04 PM
To: cf-newbie
Subject: new cf Script style


Hi,
I am starting to learn the new cfscript style for cfcs, and I was wondering if 
there are any books that go over this? I thought maybe CFWACK volume 3 might(if 
you have it, please let me know). Or if there are any tutorials for this, 
please point me to them.

Also, why when I see examples on-line they use both styles <cfscript> component{

/**
* @hint This is a hint
* @arg1 This is an argument hint
* @arg2 This is another argument hint
*/
public void function myFunc(string arg1='default', numeric arg2) {
  return TRUE;
}
}

</cfscrtipt>

maybe they are using the tags for highlighting, as I can't figure out why they 
would use both styles.
thanks so much,
Johnny 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5925
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to