You can find a link to the errata page at http://www.cristiandarie.ro/
php-mysql-ecommerce-2/ or at http://www.apress.com.
CHAPTER 3 ?– STARTING THE TSHIRTSHOP PROJECT 38
How It Works: The Smarty Installation
In this exercise, you created these three folders used by Smarty:
??? The templates folder will contain the Smarty templates for your web site (.tpl files).
??? The templates_c folder will contain the compiled Smarty templates. These are .php files that Smarty
generates automatically when parsing the .tpl templates. The compiled templates are regenerated whenever
the source .tpl templates are modified.
??? The configs folder will contain configuration files you might need for templates.
After adding these folders, your folder structure should look like this:
tshirtshop/
include/
configs/
libs/
smarty/
internals/
plugins/
presentation/
templates/
templates_c/
Implementing the Site Skeleton
The visual design of the site is usually agreed on after a discussion with the client and in collaboration
with a professional web designer. Alternatively, you can buy a web site template
from one of the many companies that offer this kind of service for a reasonable price.
There is an incredible amount of literature available to help with visual design, layout, CSS,
usability, findability, and other aspects related to web development.
Pages:
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106