1 coldfusion basics a goal properly set is halfway reached. zig ziggler
TRANSCRIPT
![Page 1: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/1.jpg)
1www.cfunited.com
ColdFusion BasicsColdFusion Basics
A goal properly set is halfway reached.
Zig Ziggler
![Page 2: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/2.jpg)
2www.cfunited.com
PerspectivePerspective
Mystery Guest #1
Mystery Guest #2
Mystery Guest #3
![Page 3: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/3.jpg)
3www.cfunited.com
The Evolution of a DeveloperThe Evolution of a Developer
Applications
Packaging
Conditional Logic
Loops
Variables
User
![Page 4: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/4.jpg)
4www.cfunited.com
Different ApproachesDifferent Approaches
AJAX (Browser)Browser•Load Page•Load Content/Data
•Send Content/Data
Server•Send Page•Send Content/Data
•Process Content/Data
AIR (Desktop w/Flex)Desktop App•Load App•Load Content/Data
•Send Content/Data
•Store Content/Data
Server•(n/a)•Send Content/Data
•Process Content/Data
![Page 5: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/5.jpg)
5www.cfunited.com
UsabilityUsability
Tags
<cfset ma = [1,3,5,22]>
<cfset myTotal = 0>
<cfloop index=“i”
from=“1”
to=“#arrayLen(ma)#”>
<cfset myTotal = myTotal + ma[i]>
</cfloop>
<cfoutput>#myTotal#</cfoutput>
Script<cfscript>
ma = [1,3,5,22];
myTotal = 0;
for(i=1;i<=arrayLen(ma);i++){
myTotal += ma[i];
}
// writeOutput(myTotal);
</cfscript>
<cfoutput>#myTotal#</cfoutput>
![Page 6: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/6.jpg)
6www.cfunited.com
Different ApproachesDifferent Approaches
SOAP Web
ServiceAJAX
AIRFlex
.Net
PHP
• Networking• SOAP• REST• RSS
• Forms• HTML (submit)• AJAX (submit)• PDF
• Application Frameworks• CF on Wheels • ColdBox• Fusebox• Machii• Model Glue• SOS(Flex/AIR)• Cairngorm• Mate• PureMVC• Switz
![Page 7: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/7.jpg)
7www.cfunited.com
Different ApproachesDifferent Approaches
SOAP Web
ServiceAJAX
AIRFlex
.Net
PHP
• Methodologies• Procedural• Stand Alone• Object Oriented• Inversion of Control
• Libraries(Data CF)• DataMgr• Transfer
(AJAX)•EXTJS •jQuery• Moho• Prototype• Spry• YUI
![Page 8: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/8.jpg)
8www.cfunited.com
Focus on the task at hand!Focus on the task at hand!
Applications
Packaging
Conditional Logic
Loops
Variables
User
![Page 9: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/9.jpg)
9www.cfunited.com
VariablesVariables
Applications
Packaging
Conditional Logic
Loops
Variables
User
![Page 10: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/10.jpg)
10www.cfunited.com
VariablesVariables
A. Simple Variable Types “Text” Numbers Binary
![Page 11: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/11.jpg)
11www.cfunited.com
VariablesVariables
Lists
![Page 12: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/12.jpg)
12www.cfunited.com
VariablesVariables
Arrays
![Page 13: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/13.jpg)
13www.cfunited.com
VariablesVariables
Structures
![Page 14: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/14.jpg)
14www.cfunited.com
VariablesVariables
Recordsets (queries)
![Page 15: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/15.jpg)
15www.cfunited.com
VariablesVariables
XML
![Page 16: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/16.jpg)
16www.cfunited.com
LoopsLoops
Applications
Packaging
Conditional Logic
Loops
Variables
User
![Page 17: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/17.jpg)
17www.cfunited.com
LoopsLoops
List Loops
![Page 18: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/18.jpg)
18www.cfunited.com
LoopsLoops
Array Loops
![Page 19: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/19.jpg)
19www.cfunited.com
LoopsLoops
Recordset (query) Loops
![Page 20: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/20.jpg)
20www.cfunited.com
LoopsLoops
• whilea = ArrayNew(1);loop = 1;while (loop LE 10) {
a[loop] = loop * 5;loop = loop + 1;
}
![Page 21: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/21.jpg)
21www.cfunited.com
LoopsLoops
• do … whilea = ArrayNew(1);loop = 1;do {
a[loop] = loop * 5; loop = loop + 1;
} while (loop LE 10);
![Page 22: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/22.jpg)
22www.cfunited.com
LoopsLoops
• For Loopsfor ( loop=1; loop LE 10; loop = loop+1) {
if(a[loop] EQ "") continue;WriteOutput(loop);
}
// continue skip to next loop start
// break exit loop immediately
![Page 23: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/23.jpg)
23www.cfunited.com
LoopsLoops
• Structure LoopsmyStruct=StructNew();myStruct.productName=“wheat flour";mystruct.quality="fine";myStruct.quantity=50;for (keyName in myStruct) {
WriteOutput("myStruct." & Keyname & " has the value: " & myStruct[keyName] &"<br>");
}
![Page 24: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/24.jpg)
24www.cfunited.com
Conditional LogicConditional Logic
Applications
Packaging
Conditional Logic
Loops
Variables
User
![Page 25: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/25.jpg)
25www.cfunited.com
Conditional LogicConditional Logic
A. if
B. else if
C. else
![Page 26: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/26.jpg)
26www.cfunited.com
Conditional LogicConditional Logic
A. switch
B. case
C. defaultCase
![Page 27: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/27.jpg)
27www.cfunited.com
PackagingPackaging
Applications
Packaging
Conditional Logic
Loops
Variables
User
![Page 28: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/28.jpg)
28www.cfunited.com
PackagingPackaging
A. Include Files
B. Custom Tags
C. Custom Components (objects/CFCs)
![Page 29: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/29.jpg)
29www.cfunited.com
PackagingPackaging
A. Include Files Example: Layout Header / Footer
![Page 30: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/30.jpg)
30www.cfunited.com
PackagingPackaging
B. Custom Tags Example: Layout
a) Includes Header and Footer
Example: Custom Layout with Application Setting
![Page 31: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/31.jpg)
31www.cfunited.com
PackagingPackaging
C. CFCs (custom components) Example: Custom User
a) Login/Logout
Revise with DataMgr
![Page 32: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/32.jpg)
32www.cfunited.com
ApplicationsApplications
Application
Packaging
Conditional Logic
Loops
Variables
User
![Page 33: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/33.jpg)
33www.cfunited.com
ApplicationsApplications
A. Application
B. Session
C. Request
![Page 34: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/34.jpg)
34www.cfunited.com
ApplicationsApplications
1. onApplicationStart()2. onSessionStart()3. onRequestStart()4. onRequest()5. onRequestEnd() onSessionEnd() OnApplicationEnd()A. onError()B. onMissingTemplate()
![Page 35: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/35.jpg)
35www.cfunited.com
ApplicationsApplications
A. THIS.nameB. THIS.applicationTimeoutC. THIS.clientManagementD. THIS.clientStorageE. THIS.customTagPathF. THIS.loginStorageG. THIS.mappingsH. THIS.sessionManagementI. THIS.sessionTimeoutJ. THIS.setClientCookiesK. THIS.setDomainCookiesL. THIS.scriptProtectM. THIS.secureJSONN. THIS.secureJSONPrefixO. THIS.welcomeFileList
![Page 36: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/36.jpg)
36www.cfunited.com
What Else?What Else?
A. Learn SQL?
B. Application Frameworks
C. Library Frameworks
![Page 37: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/37.jpg)
37www.cfunited.com
ResourcesResources
A. Books CFWack 1 through 3 ColdFusion 8 Developer Tutorial
B. Training and Knowledge Sites Lynda.com CommunityMX.com
C. Conferences (like this one)
![Page 38: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/38.jpg)
38www.cfunited.com
ResourcesResources
A. blogs
B. Adobe Dev Center
C. User Groups
D. Forums
![Page 39: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/39.jpg)
39www.cfunited.com
ResourcesResources
A. Popular CFML sites Riaforge.org cfMeetup HouseOfFusion.com Cflib.org
![Page 40: 1 ColdFusion Basics A goal properly set is halfway reached. Zig Ziggler](https://reader036.vdocuments.site/reader036/viewer/2022062716/56649e155503460f94aff78e/html5/thumbnails/40.jpg)
40www.cfunited.com
ColdFusion BasicsColdFusion Basics
A goal properly set is halfway reached.
Zig Ziggler