I would like to share basic grammar in ColdFusion.
🐹 How ColdFusion Work
ColdFusion code is compiled into Java byte-code. ColdFusion is made up of two parts:
- ColdFusion Application Server
- ColdFusion Markup Language (CFML)
🐡 What is ColdFusion Markup Language
- The ColdFusion Markup Language (CFML) looks similar to HTML in which is tag-based.(e.g,
<cfloop>
) - CFML is also includes fully functionally built-in scripting language similar to JavaScript
🍄 Cheat Sheet for Basic Grammer
Variables
<!--- Original Variable ---> |
Comment
<!-- This is an HTML comment --> |
Builtin Functions
ColdFusion has a lot of functions for performing all sort of tasks, etc.
#DateFormat(Now(),"dddd, mmmm d, yyyy")# |
If you want to know more detail, please see ColdFusion functions by category
Arithmetic and String Operation
ColdFusion has some Arithmetic and String Operations:
<!--- Atrithmetic Operation ---> |
If you want to know more detail, please see Expressions-Developing guide
Conditional Processing
<!--- If-Else if-Else Blocks ---> |
List
<cfset numlist="1,2,3,4,5"> |
If you want to know more detail about List functions, please see List functions
Array
<!--- One-dimensional Arrays --> |
If you want to know more detail about Array functions, please see Array functions
Form
HTML with form:
<!--- Use HTML form ---> |
Receive form data:
<cfoutput> |
cfform
tag supports validation:
Suffix | Description |
---|---|
numeric | Accept only Numeric input |
require | Check that the value exists |
Valid email address |
🐞 Next
TOBED
🎳 Special Thanks
🖥 Recommended VPS Service
VULTR provides high performance cloud compute environment for you.
Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour).
In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!