The extended functionality classes offer GUI-less background
features that are commonly needed in HTML-applications. They
may make use of core functionality (indicated for each class
below).
Class Cart in cart.inc:
Manages a simple shopping cart. Items can be put into the
cart, taken out of the cart and the carts contents can be
enumerated.
Depends on Sessionto be useful. Requires that you add the
statement require("cart.inc") to prepend.php3.
Class Template in template.inc:
Manages templates and variable replacement. Templates can be
stored in files. They are loaded on demand and variables are
replaced in these files. This allows you to separate your design from the application code.
An independent class. Requires that you add the statement
require("template.inc") to prepend.php3 or that
you include it manually on each page where you want to use it.