+ All Categories
Home > Education > Coldfusion basics training by Live instructor

Coldfusion basics training by Live instructor

Date post: 20-May-2015
Category:
Upload: learnfungo
View: 483 times
Download: 0 times
Share this document with a friend
Popular Tags:
21
COLDFUSION AND OTHER TRAININGS FOR $0 AND $10 Visit us at : http://learnfungo.com
Transcript
Page 1: Coldfusion basics training by Live instructor

COLDFUSION AND OTHER TRAININGS FOR $0 AND $10

Visit us at : http://learnfungo.com

Page 2: Coldfusion basics training by Live instructor

Cold Fusion

Getting Started with Cold Fusion…

Page 3: Coldfusion basics training by Live instructor

What is ColdFusionColdFusion is “A rapid server

scripting environment for creating rich internet applications."

ColdFusion is a Web Application Server that executes scripts which are written in CFML (ColdFusion Markup Language).

Page 4: Coldfusion basics training by Live instructor

WHY COLD FUSION?

Page 5: Coldfusion basics training by Live instructor

AdvantagesEase of DevelopmentRapid application development

(RAD). ColdFusion abstracts complex, low-level programming tasks, such as establishing connectivity with a mail server or querying a database, with simple HTML-like tags.

Available for a broad range of popular operating systems and web servers.

Page 6: Coldfusion basics training by Live instructor

ColdFusion FlowAccessing a website

Page 7: Coldfusion basics training by Live instructor

ColdFusion FlowExplained A web browser makes a request to a web server for a

template with a .cfm or .cfc extension (or another custom configured extension).

The web server receives the request and forwards it to the ColdFusion MX Application Server.

The ColdFusion MX Application Server parses the CFML template and processes the tags and functions accordingly, interacting with other services, such as data sources or mail servers, as necessary.

The ColdFusion MX Application Server combines its dynamic output with the static HTML and CSS (and JavaScript, if any) in the template and passes the whole page back to the web server.

The web server passes the dynamically generated content back to the client machine's web browser.

Page 8: Coldfusion basics training by Live instructor

ABOUT DATA TYPES

Page 9: Coldfusion basics training by Live instructor

Data TypesBooleanStringsNumbersDate/time objectsListsArraysStructuresQuery objects

Page 10: Coldfusion basics training by Live instructor

ABOUT VARIABLES

Page 11: Coldfusion basics training by Live instructor

Variables in CFMLVariable names must begin with a

letter, an underscore, or the Unicode currency symbol ($) and can contain only letters, numbers, underscores, and Unicode currency symbols. Variable names can't contain spaces.

ColdFusion variable names aren't case sensitive.

Page 12: Coldfusion basics training by Live instructor

Assigning Values to Variables<cfset x = 8> <cfset y = x+12> <cfset Name = “Ankur"> <cfset x = Name> <cfset Authenticated = true> <cfset TheDate =

DateFormat(Now( ),'mm/dd/yyyy')>

Page 13: Coldfusion basics training by Live instructor

Variable ScopeLocalFormURLQueryFileCookieApplicationSessionClient

Page 14: Coldfusion basics training by Live instructor

ABOUT EXPRESSIONS & OPERATORS.

Page 15: Coldfusion basics training by Live instructor

Expressions<cfset x = 10*(3+2)>……

Page 16: Coldfusion basics training by Live instructor

OperatorsArithmetic : Performs arithmetic operations such as sign changes,

addition, subtraction, etc., on numeric values. Comparison: Compares two values and returns a Boolean true/false. String: There is only one string operator in the CFML

language. The ampersand (&) concatenates strings. Boolean: Also known as logical operators, Boolean operators

perform connective and negation operations and return Boolean true/false values.

Live Example

Page 17: Coldfusion basics training by Live instructor

Blurting it outTo output the contents or results

of a ColdFusion expression, we use <cfoutput> tag.

cfoutput is a paired tag, which means that it has both start and end tags.

Live Example

Page 18: Coldfusion basics training by Live instructor

ABOUT CONDITIONAL PROCESSING.

Page 19: Coldfusion basics training by Live instructor

Conditional Processingcfif, cfelseif, and cfelse

<cfif expression> HTML and CFML...

<cfelseif expression> HTML and CFML...

<cfelse> HTML and CFML...

</cfif>

Page 20: Coldfusion basics training by Live instructor

Continue…cfswitch, cfcase, and cfdefaultcase<cfswitch expression="expression">

◦ <cfcase value="value_or_list_of_values"> HTML and CFML...

◦ </cfcase> ◦ <cfcase value="value_or_list_of_values">

HTML and CFML...

◦ </cfcase> ... ◦ <cfdefaultcase>

HTML and CFML...

◦ </cfdefaultcase> ◦ </cfswitch>

Live Example

Page 21: Coldfusion basics training by Live instructor

COLDFUSION AND OTHER TRAININGS FOR $0 AND $10

Visit us at : http://learnfungo.com


Recommended