MACROMEDIA COLDFUSION 5-DEVELOPING Manuale Utente Pagina 41

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 47
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 40
ColdFusion MX 7 Getting Started Experience Tutorial Page 41 of 47
Figure 58. The art pieces
are displayed in alphabetical
order, with just one
additional line of code
As this tutorial shows, ColdFusion can greatly increase your productivity over static HTML development. If you have any
question about this, simply look at the number of lines of code you used for your ColdFusion page compared with the
static HTML page.
To display only nine pieces of artwork, your HTML page has approximately 90 lines of code. You used only half this
number of lines in your ColdFusion page to display 45 pieces of artwork. And what’s more, you could continue to add
hundreds or even thousands of more pieces to the database and never have to add another line of code to your
ColdFusion page.
To become even more productive, proceed to the next step and discover ColdFusion components.
STEP 7: Optimizing the Code with ColdFusion Components (CFCs)
ColdFusion becomes even more powerful when you create your applications with code reuse in mind. In this section, you
learn how you can use ColdFusion components (CFCs) to further refine your ColdFusion applications to make them more
flexible and scalable.
1. In Dreamweaver MX 2004, create a new document selecting File > New or using the Windows shortcut Ctrl + N.
Choose Dynamic page from the Category option and ColdFusion component from the Dynamic page option, and then
click Create.
Vedere la pagina 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 47

Commenti su questo manuale

Nessun commento