Coldfusion basics training by Live instructor

686 views

Published on

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
686
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Coldfusion basics training by Live instructor

  1. 1. Visit us at :http://learnfungo.comCOLDFUSION ANDOTHER TRAININGS FOR$0 AND $10
  2. 2. Cold FusionGetting Started with ColdFusion…
  3. 3. What is ColdFusion ColdFusion 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).
  4. 4. WHY COLD FUSION?
  5. 5. Advantages Ease of Development Rapid 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.
  6. 6. ColdFusion FlowAccessing a website
  7. 7. 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 machines web browser.
  8. 8. ABOUT DATA TYPES
  9. 9. Data Types Boolean Strings Numbers Date/time objects Lists Arrays Structures Query objects
  10. 10. ABOUT VARIABLES
  11. 11. Variables in CFML Variable 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 cant contain spaces. ColdFusion variable names arent case sensitive.
  12. 12. Assigning Values toVariables <cfset x = 8> <cfset y = x+12> <cfset Name = “Ankur"> <cfset x = Name> <cfset Authenticated = true> <cfset TheDate = DateFormat(Now( ),mm/dd/yyyy)>
  13. 13. Variable Scope Local Form URL Query File Cookie Application Session Client
  14. 14. ABOUT EXPRESSIONS &OPERATORS.
  15. 15. Expressions <cfset x = 10*(3+2)> ……
  16. 16. 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
  17. 17. Blurting it out To 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
  18. 18. ABOUT CONDITIONALPROCESSING.
  19. 19. Conditional Processing cfif, cfelseif, and cfelse <cfif expression> HTML and CFML... <cfelseif expression> HTML and CFML... <cfelse> HTML and CFML... </cfif>
  20. 20. 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
  21. 21. Visit us at :http://learnfungo.comCOLDFUSION ANDOTHER TRAININGS FOR$0 AND $10

×