Book Image

CodeIgniter Web Application Blueprints

Book Image

CodeIgniter Web Application Blueprints

Overview of this book

Table of Contents (16 chapters)
CodeIgniter Web Application Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating the views


There are four views in this project, and these are as follows:

  • /path/to/codeigniter/application/views/shop/display_products.php: This displays a list of products to the user and allows them to add products to their cart and also filter products.

  • /path/to/codeigniter/application/views/shop/display_cart.php: This displays all products in the user's cart, allows them to alter the quantities of products in their cart, and also gives an option to move to the checkout stage. This is a customized version of the cart template available from the CodeIgniter documentation.

  • /path/to/codeigniter/application/views/shop/user_details.php: This displays a form to the user, allowing them to enter information about their order, such as their contact details and delivery address.

  • /path/to/codeigniter/application/views/nav/top_nav.php: This displays the top-level menu. In this project, this is very simple, containing a project name and link to go to the shop` controller and a link named...