The best choice for creating ColdFusion pages is Macromedia Dreamweaver MX. Dreamweaver
MX includes many CFML features for building applications, such as rapid visual development,
robust CFML editing, and integrated debugging. Dreamweaver MX also includes a copy of
HomeSite+ for users who are familiar with developing their application code using ColdFusion
Studio or HomeSite 5. HomeSite+ combines all the features of ColdFusion Studio and
HomeSite 5, along with support for the latest ColdFusion MX tags. For more information, see
Chapter 5, "Lesson 2: Configuring Your Development Environment," on page
Note: This manual describes how to create ColdFusion applications by writing your code manually. It
does not address how to create ColdFusion pages by generating code with wizards. For information
about using wizards to generate CFML code, see the product documentation for Dreamweaver MX
and HomeSite+.
Creating a ColdFusion page
Creating a ColdFusion page involves using tags and functions. The best way to understand this
process is to create a ColdFusion page.
In the following procedure, you will create a simple ColdFusion page by using HTML tags, one
ColdFusion tag, and two ColdFusion functions. The following table briefly explains the
ColdFusion tags and functions:
Element
Now()
DateFormat()
cfoutput
Note: ColdFusion tags and functions are considered primary elements of CFML. You will learn more
about these elements and others later in this manual.
To create a ColdFusion page:
Open your editor and create a blank file.
1.
Enter the following code on the page:
2.
<html>
<head>
<title>A ColdFusion Page</title>
</head>
<body>
<strong>Hello world, this is a ColdFusion page.</strong>
<br>
<cfoutput> Today's date is #DateFormat(Now())# </cfoutput>
</body>
</html>
16
Chapter 2: CFML Basics
Description
A function supported in CFML that you can use to retrieve information from your
system.
You will use the
function in the following procedure to return the current date
Now()
that is retrieved from your system.
A function that instructs ColdFusion to format the date returned by the
function.
A ColdFusion tag that you use to return dynamic data (data retrieved from a
database) to a web page.
You will use the
cfoutput
retrieved from your system.
tag in the following procedure to display the current date
49.
Now()
Need help?
Do you have a question about the COLFUSION MX 7-GETTING STARTED BUILDING COLDFUSION MX and is the answer not in the manual?
Questions and answers