September 2007
Intermediate to advanced
600 pages
20h 21m
English
Although the version of StoreCart.cfm in Listing 22.4 works just fine, the code itself is a bit messy. It contains quite a few list functions, which don’t necessarily have to do with the conceptual problem at hand (the user’s cart). Worse, other templates that need to refer to the user’s cart (such as the Checkout template) must use nearly all the same list functions over again, resulting in quite a bit of code for you to maintain.
You will learn about Custom Tags in Chapter 25, “Creating Custom Tags,” in Vol. 2, Application Development. This early example is rather simple, but if you find it confusing, read ahead to Chapter 25.
The code in Listing 22.5 creates a Custom ...
Read now
Unlock full access