Introduction to ColdFusion Training (CFM101)
Course Length: 3 days
Delivery Methods:
Available as private class only
Course Overview
This is an introductory ColdFusion class for Web designers who are brand new to ColdFusion. You will learn to process forms, manage sessions, write reusable code and create database-driven ColdFusion-based websites.
Course Benefits
- Learn to get data from a database and display it on the page
- Learn to insert, Edit and Delete records from a database
- Learn to pass data from one page and receive it on another using HTML Forms
- Learn to create Dynamic Form Fields including Dynamic Select Lists
- Learn to build a Search Interface
- Learn to use Session Variables to provide Password Protection
- Learn to call ColdFusion Components (CFCs) and Custom Tags
Course Outline
- Introduction to ColdFusion
- Static pages vs. Dynamic pages
- Server-side Web Technologies
- Database Alphabet Soup: ODBC/JDBC, DSNs and SQL
- Course Objectives and Prerequisites
- Introduction to Course Project
- ColdFusion Basics
- Using CFML
- Code Editors
- Tag Updaters / Extensions
- Tag Editing Dialog Boxes
- Embedded Tag Help
- Using ColdFusion Comments
- Creating Variables
<cfset>
and<cfoutput>
- Variable Scope/Prefixes
- Built-in ColdFusion Functions
- Using
<cfinclude>
to reuse code
- Using CFML
- Dynamic Data: Querying the Database
- Database Basics
- Introduction to SQL
- Select Statement
- Update Statement
- Insert Statement
- Delete Statement
- Data Source Name (DSN) / Remote Development Server (RDS)
- The DSN Used in This Class: movieList
- Course Project Database
- Querying the database with
<cfquery>
<cfdump>
for Quick Output
- Customizing Display with
<cfoutput>
- Building Dynamic Tables
- Shortcut:
<cftable>
- Database Basics
- Creating a Drill-down Interface
- Passing Variables between Pages
- "Two-page method"
- Receive Variables through the URL
- Using a WHERE clause in a SQL Statement
- Protecting Against SQL Injection Attacks with
<cfqueryparam>
- Passing Variables between Pages
- Conditional Statements and Forms
- Conditional Statements
<cfif>
,<cfelseif>
and<cfelse>
- Comparison Operators
- Operator
- Description
- Using the isDefined() function
- HTML Form Review
- Self-Submitting Forms
- Using the
<cfparam>
tag to set a default value - Quick Examination of a ColdFusion Framework (Methodology): Fusebox
- Using the
- Dynamically Populating Select Lists
- HTML Review:
<select>
tags - Introducing the
<cfform>
Tag - Shortcut:
<cfselect>
- HTML Review:
- Conditional Statements
- Quick Introduction to RSS and Ajax with
<cfform>
- Reading an RSS Feed
- Introducing the
<cfform>
Tag - Building a Mask with
<cfform>
- Automatically Build a Dynamic Select List with
<cfselect>
- Search Interface
- Creating a Search Interface
- Using % and _ in a LIKE Statement
- Creating a Search Interface
- Insert Records into the Database
- Inserting Records
- SQL Insert Statement
- Insert Record Step 2 - the Insert
- Shortcut:
<cfinsert>
- Redirect Users with
<cflocation>
- Automated Form Validation
- Client-side vs. Server-side validation: When does the validation code run?
- Inserting Records
- Edit (Update) Database Records
- Updating records
- SQL UPDATE Statement Review
- Passing the Primary Key
- Page 2 - View Current Data in a Form
- Page 3 - Perform the Update to the Database
- Shortcut:
<cfupdate>
- Deleting Records
- Note on Deleting records
- Review of the SQL Delete Statement
- "Deleting" without deleting
- No
<cfdelete>
!
- Updating records
- Reusing Code
- Reusing code with <cfinclude> and <cflocation>
- Custom Tags
- Where to store Custom Tags
- CALLER and ATTRIBUTE scopes
- Using <cfmodule>
- A Note about CFX tags
- User Defined Functions (UDFs) and ColdFusion Components (CFCs)
- Creating UDFs with the <cffunction> tag
- Using ColdFusion Components (CFCs)
- Creating Components
- Calling or Invoking Components
- Passing Arguments to Components
- The Component Code
- The main CFML page
- View a Component directly in the browser
- Using Session Variables for Password Protection
- Session Variables
- Using Application.cfc to Enable Session Management
- Creating Password Protected Pages
- Password-protect.cfm (the included page)
- Application.cfm
- Locking Session and Application variables with <cflock>
- Session Variables
- Tracking User Information with Cookies (optional)
- Using Cookies to Track Users
- Sending email with <cfmail> (optional)
- Using ColdFusion to Send Email
- <cfmail> Tag Syntax
- Using ColdFusion to Send Email
Class Materials
Each student will receive a comprehensive set of materials, including course notes and all the class examples.
Class Prerequisites
Experience in the following is required for this ColdFusion class:
- HTML
Experience in the following would be useful for this ColdFusion class:
- SQL
- JavaScript
- CSS
Live Private Class
- Private Class for your Team
- Live training
- Online or On-location
- Customizable
- Expert Instructors