34109-vm/index.php
2025-09-19 12:49:02 +00:00

15 lines
512 B
PHP

<?php
// index.php - Main Entry Point
// 1. Load shared configurations and libraries.
// This makes the db() function available to the controller.
require_once 'db/config.php';
// 2. Load the controller.
// The controller fetches data, performs logic, and makes variables
// available for the view (e.g., $players, $podium).
require_once 'controllers/index_controller.php';
// 3. Load the view.
// The view uses the variables prepared by the controller to render the HTML.
require_once 'views/index_view.php';