Skip to content

RaymondHeang/SmartphoneShop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartphoneShop

This project is a Smartphones e-commerce website using the MVC pattern.

Note: SmartphoneShop is still in development.


##Controllers

SmartphoneShop uses 3 different controllers : Router, FrontController & BackController.

###Router

This is the main controller. Its purpose is to redirect the user to the right controller (Front or Back) and to the right method, depending on the URL's arguments.

For example : index.php?controller=Front&method=signin will redirect the user to the signinAction method from the FrontController.

In case of a nonexistent controller's name and/or method's name given, Router will show a 404 error page. By default, if no argument is given, Router will redirect the user to the FrontController's homeAction method.

###FrontController

This is the public controller, meaning every user has access to this controller. Its purpose is to redirect users to its methods, which are basic features, such as displaying products on the home page, adding/removing products to cart, signing in, or validate an order. See the FrontController class code to get all the features.

###BackController

Finally, this is the private controller, reserved to users who are granted Administrator role. As its name suggests, it is meant to the backend management. This controller allows administrator users to create, read, update or delete (CRUD) a product from the database, and also to access every order's details on the database.

About

Smartphones e-commerce website using the MVC pattern

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published