Skip to content

Latest commit

 

History

History
38 lines (32 loc) · 1.35 KB

README.md

File metadata and controls

38 lines (32 loc) · 1.35 KB

MVC learning

This repository is part of Becode.org training. The objectives are to understand and use an MVC structure to interact with a database.

Table of Contents

  1. General Info
  2. Technologies & Libraries
  3. Installation
  4. Structure

General Info


A starter pack is provided to create this project. Various tasks, corrections, and implementations are present in the code files.

Technologies & libraries


  • PHP: Version 8.0.26

  • MySQL: Version 8.0.31

  • Git: Versioning control

  • PDO: PHP extension to database acces

Instalation


  1. Clone the repository.
  2. Set up a local PHP server.
  3. Import the database (whith exemples insside).
  4. Navigate to the project in your web browser.

Structure


The project follows the MVC design pattern:

  • Model (./Model): Data structures, classes
  • View (./View): Data presented in a user-friendly way
  • Controller (./Controller): Handles user interaction

Additional directories and files include:

  • DataBase: Files to be imported into the database

  • Connect: Connection to the database

  • index.php: Router - Directs requests to the appropriate controllers based on the requested page.