|
Featured Sponsor Of The Month
|
|
Cold Fusion Web Site Development I'm a big fan of all things dynamic. I like dynamic music (check out such relative unknowns as King's X, Galactic Cowboys, Life Sex and Death, and 24/7 Spyz) and I like dynamic web content. My personal favorite will always be PHP - gotta expect that, if you know anything about me - but I am also rather fond of the power of Cold Fusion. Although I never touched it before March of 2004, it has quickly grown on me as an extremely powerful language, rivaling the power of PHP. I use Cold Fusion at my work daily, writing dynamic applications and having fun while doing it. The purpose of this tutorial is to familiarize you with some of the basics of Cold Fusion MX (version 6.1) and to explain a few of the more common tags. An important thing to know about Cold Fusion is that, like PHP, it must have special characters to let the browser know to parse the code. Cold Fusion MX, as with previous versions of Cold Fusion, define this special character as the # sign. It is used in conjunction with CFML to create dynamic or static pages, depending on your preference. Static Example: Those familiar with static programming should see no surprises here. In the previous example, a regular HTML page was set out, and then I added the <cfset> and <cfoutput> tags. <cfset> is how you would explicitly declare a variable in Cold Fusion, and <cfoutput> is how you would have that variable printed out on the page.
Dynamic Example: In the above example, it is assumed that you have a database (usually SQL
Server, but just about any will work) with a connection string defined inside of Application.cfm.
Good time to go over that page really quick - Application.cfm gets invoked at the beginning
of every page transition. Whatever variables are in Application.cfm are automatically declared
as global by default, so they are live throughout each and every browser session. I hope this short tutorial has helped you get started with Cold Fusion. If there are any problems, feel free to post them to the Forums, and I'll answer.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
People Online: 68
BrainStorm MultiMedia is an internet-based company run by Bradley Beard that provides free tutorials on PHP, MySQL, Dreamweaver MX, Flash MX, ActionScript, Fireworks MX, ColdFusion MX, cPanel X, Photoshop 7, CuteFTP, SQL Server 2000, how to start ranking high in Google, web site promotion and enhancement, and search engine optimization. Along with these tutorials, I also do freelance web design using PHP/MySQL or ColdFusion.
|