Initial commit of the Asset Management System, including project structure, Docker configuration, database migrations, and core application files. Added user authentication, asset management features, and basic UI components.
This commit is contained in:
26
public/index.php
Normal file
26
public/index.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Front Controller - Asset Management System
|
||||
*/
|
||||
|
||||
// Start session
|
||||
session_start();
|
||||
|
||||
// Load Composer autoloader
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
// Load environment variables
|
||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/..');
|
||||
$dotenv->load();
|
||||
|
||||
// Load configuration
|
||||
require_once __DIR__ . '/../config/config.php';
|
||||
|
||||
// Load routes
|
||||
require_once __DIR__ . '/../config/routes.php';
|
||||
|
||||
// Initialize application
|
||||
$app = new App\Core\Application();
|
||||
|
||||
// Handle the request
|
||||
$app->handle();
|
||||
Reference in New Issue
Block a user