Prev | Current Page 616 | Next

Emilian Balanescu and Cristian Darie

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


customer_logged: After a user is logged, this componentized template takes the place of
the customer_login componentized template to show the current logged-in user and displays
account management and logout links.
customer_details: This is for registering a new user or for editing the basic details of an
existing user.
CHAPTER 16 ?–  MANAGING CUSTOMER DETAILS 509
customer_address: This allows a user to add/edit address information.
customer_credit_card: This allows a user to add/edit credit card information.
Now, take a deep breath, and follow the steps of the next exercise to implement these new
componentized templates; we??™re nearly there!
Exercise: Implementing the Componentized Templates
1. Create a new template file named customer_login.tpl in the presentation/templates folder, and
add the following code to it:
{* customer_login.tpl *}
{load_presentation_object filename="customer_login" assign="obj"}

Login



{if $obj->mErrorMessage}

{$obj->mErrorMessage}

{/if}



value="{$obj->mEmail}" />







|
Register user




2.


Pages:
604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628
pozycjonowanie i optymalizacja meble ogrodowe przeprowadzki wrocław podsłuchy tonery konica