Prev | Current Page 374 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"

You also get a link (???back to
departments???) that takes you back to the department??™s administration page.
The navigation logic among the department, category, and product administration pages
is done using query string parameters. As you can see in Figure 10-4, when a department is
selected, its ID is appended to the query string. You also used this technique when creating the
index.php page. There, you decided which componentized template to load (at runtime) by
analyzing the query string parameters.
The catalog administration part of the site consists of admin.php and a number of other PHP
files and Smarty templates. You??™ll build these components one at a time. For each component,
you??™ll first implement the presentation layer, then write the business tier code, and finally write
the data tier methods.
You??™ll extend the administrative section of the web site in the following chapters. In
Chapter 11, you??™ll add product administration features, and in later chapters, you??™ll implement
orders and shopping cart administration features, and you??™ll handle your customers??™ sensitive
data such as credit card data, phone numbers, and so on.
CHAPTER 10 ?–  CATALOG ADMINISTRATION: DEPARTMENTS AND CATEGORIES 270
Setting Up the Catalog Administration Page
Before building any administrative pages, we need to put in place a security mechanism for
restricting the access to these pages.


Pages:
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386