How gaelsanchezleal-cuenta/ed3_videojuegos_backend works
ED3_VideoJuegos is a PHP MVC web application for browsing a public videogame catalog and, after login, administering videogames and user accounts. The workflow begins at the web entry point, routes requests to controllers, and renders views; inventory and user operations use repositories and a shared PDO connection to MariaDB/MySQL. The README also describes platforms, genres, stock, and prices as inventory data. Source excerpts support the routing and persistence links shown; other view and user-entity internals were not sampled, so uncertain wiring is omitted.
Main entry points: ControllerVideogame.php Inventory actions · MyConeccion.php PDO connection · FrontController.php Route dispatcher · ControllerUser.php Account actions
Components 23
Web entry and routing
- Web entry
PU/index.php - Route dispatcher
PU/src/FrontController.php - Shared page shell
PU/view/static/header.php - Application initialization
PU/src/loader.php
Videogame inventory
- Public catalog
PU/view/videogame/catalogVideogameView.php - Inventory actions
PU/src/controller/ControllerVideogame.php - Inventory administration views
PU/view/videogame/MainVideogameView.php - Inventory data form
PU/view/videogame/dataVideogameView.php - Videogame model
PU/src/model/Videogame.php - Launches page
PU/view/lanzamientos.php
User accounts
- Account actions
PU/src/controller/ControllerUser.php - Account administration view
PU/view/user/MainUserView.php - Account data form
PU/view/user/dataUserView.php - Login view
PU/view/user/loginUserView.php - User entity
PU/src/persistence/entity/user.php
Persistence and logging
- Videogame repository
PU/src/repository/RepositoryVideogame.php - User repository
PU/src/persistence/repository/RepositoryUser.php - Repository operations
PU/src/persistence/repository/Repository.php - PDO connection
PU/src/persistence/MyConeccion.php - Database schema and sample data
database/ed3_videojuegos.sql - Application logger
PU/src/utils/SimpleLogger.php
Other components
- Visitor or administrator
- MariaDB or MySQL
Connections 28
- Visitor or administrator → Web entry: requests page
README.md - Web entry → Application initialization: loads application
PU/index.php - Web entry → Route dispatcher: dispatches route
PU/index.php - Web entry → Shared page shell: includes shell
PU/index.php - Route dispatcher → Public catalog: routes catalog
PU/src/FrontController.php - Route dispatcher → Inventory actions: routes inventory
PU/src/FrontController.php - Route dispatcher → Account actions: routes accounts
PU/src/FrontController.php - Route dispatcher → Launches page: includes launches
PU/src/FrontController.php - Inventory actions → Videogame repository: queries inventory
PU/src/controller/ControllerVideogame.php - Inventory actions → Videogame model: creates and validates
PU/src/controller/ControllerVideogame.php - Inventory actions → Public catalog: renders catalog
PU/src/controller/ControllerVideogame.php - Inventory actions → Inventory administration views: renders inventory
PU/src/controller/ControllerVideogame.php - Inventory actions → Inventory data form: renders form
PU/src/controller/ControllerVideogame.php - Account actions → User repository: queries accounts
PU/src/controller/ControllerUser.php - Account actions → Account administration view: renders account list
PU/src/controller/ControllerUser.php - Account actions → Account data form: renders account form
PU/src/controller/ControllerUser.php - Account actions → Login view: renders login
PU/src/controller/ControllerUser.php - Videogame repository → Repository operations: extends operations
PU/src/repository/RepositoryVideogame.php - User repository → Repository operations: extends operations
PU/src/persistence/repository/RepositoryUser.php - Videogame repository → PDO connection: runs SQL
PU/src/repository/RepositoryVideogame.php - User repository → PDO connection: queries users
PU/src/persistence/repository/RepositoryUser.php - Repository operations → PDO connection: runs CRUD
PU/src/persistence/repository/Repository.php - PDO connection → MariaDB or MySQL: connects with PDO
README.md - Database schema and sample data → MariaDB or MySQL: defines tables
README.md - PDO connection → Application logger: logs connection
PU/src/persistence/MyConeccion.php - Repository operations → Application logger: logs errors
PU/src/persistence/repository/Repository.php - Application initialization → PDO connection: opens connection
PU/src/loader.php - Application initialization → Application logger: initializes logger
PU/src/loader.php