Prev | Current Page 627 | Next

Emilian Balanescu and Cristian Darie

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

Open .htaccess, and add the highlighted RewriteRule lines:
# Rewrite cart details pages
RewriteRule ^cart-details/?$ index.php?CartAction [L]
# Rewrite register customer pages
RewriteRule ^register-customer/?$ index.php?RegisterCustomer [L]
# Rewrite address details pages
RewriteRule ^address-details/?$ index.php?AddressDetails [L]
# Rewrite credit card details pages
RewriteRule ^credit-card-details/?$ index.php?CreditCardDetails [L]
# Rewrite account details pages
RewriteRule ^account-details/?$ index.php?AccountDetails [L]

CHAPTER 16 ?–  MANAGING CUSTOMER DETAILS 527
# Set the default 500 page for Apache errors
ErrorDocument 500 /tshirtshop/500.php
14. Update index.php by adding a reference to the password hasher, symmetric crypting, secure card, and
customer accounts business tier classes as highlighted here:
// Load Business Tier
require_once BUSINESS_DIR . 'catalog.php';
require_once BUSINESS_DIR . 'shopping_cart.php';
require_once BUSINESS_DIR . 'password_hasher.php';
require_once BUSINESS_DIR . 'symmetric_crypt.php';
require_once BUSINESS_DIR . 'secure_card.php';
require_once BUSINESS_DIR . 'customer.php';
15. Open presentation/store_front.php, and add a new member to the StoreFront class as highlighted
here:
class StoreFront
{
public $mSiteUrl;
// Define the template file for the page contents
public $mContentsCell = 'first_page_contents.


Pages:
615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639
szkolenia dla przedsiębiorców oferty spa Wczasy nad morzem projektowanie wnętrz opony michelin