How matiase93/obligatorio_php works
This is a PHP web application branded Jukebox, with a URL-dispatching entry point and user-facing pages. The visible workflow routes a request to a controller; the user controller supports account creation and renders a form, while the index controller renders the home page. User, session, database, and template components are represented where supported by the tree or excerpts. The README is empty, and the sampled code does not establish the full user-listing or login workflow, so those relationships are not inferred.
Main entry points: index.php Web entry point · ctrl_usuario.php User controller · template.php Template service · ctrl_index.php Home controller
Components 15
Request handling
- Web entry point
index.php - Controller dispatcher
controladores/ctrl_index.php - Home controller
controladores/ctrl_index.php - Controller base
clases/clase_base.php
User and session
- User controller
controladores/ctrl_usuario.php - Login guard
clases/auth.php - Session state
clases/session.php - User model
clases/usuario.php
Rendering and data
- Singleton utility
clases/Singleton.php - Template service
clases/template.php - Page templates
vistas - Database connector
db/db.php - Database configuration
config/config.php
Other components
- Browser visitor
- Jukebox database
Connections 16
- Browser visitor → Web entry point: requests page
- Web entry point → Controller dispatcher: dispatches request
index.php - Web entry point → Database connector: loads connector
index.php - Controller dispatcher → Home controller: loads fallback
controladores/ctrl_index.php - Controller dispatcher → User controller: loads controller
controladores/ctrl_index.php - Home controller → Template service: renders home
controladores/ctrl_index.php - User controller → User model: creates account
controladores/ctrl_usuario.php - User controller → Template service: renders form
controladores/ctrl_usuario.php - User controller → Home controller: redirects after success
controladores/ctrl_usuario.php - Login guard → Session state: checks session
clases/auth.php - Login guard → Home controller: redirects to login
clases/auth.php - Template service → Page templates: displays templates
clases/template.php - Template service → Database configuration: reads template settings
clases/template.php - Database connector → Database configuration: loads connection settings
db/db.php - Database connector → Jukebox database: opens connection
db/db.php - Web entry point → Singleton utility: loads utility
index.php