Re-did everything, Now is modulaar and better bro.
This commit is contained in:
15
config/config.php
Normal file
15
config/config.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
// Load environment variables
|
||||
$envFile = __DIR__ . '/../.env';
|
||||
$envVars = parse_ini_file($envFile);
|
||||
|
||||
// Global configuration
|
||||
$GLOBALS['config'] = [
|
||||
'DB_HOST' => $envVars['DB_HOST'] ?? 'localhost',
|
||||
'DB_USER' => $envVars['DB_USER'] ?? 'root',
|
||||
'DB_PASS' => $envVars['DB_PASS'] ?? '',
|
||||
'DB_NAME' => $envVars['DB_NAME'] ?? 'tinkertickets',
|
||||
'BASE_URL' => '/tinkertickets', // Application base URL
|
||||
'ASSETS_URL' => '/assets', // Assets URL
|
||||
'API_URL' => '/api' // API URL
|
||||
];
|
||||
Reference in New Issue
Block a user