15 lines
512 B
PHP
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'; |