Files
Riyyi a8056b66cc Initial commit
Couldnt keep the history unfortunately.
2021-03-03 17:55:48 +01:00

30 lines
458 B
PHP

<?php
namespace App\Classes;
class Config {
protected static $config;
//-------------------------------------//
public static function load(): void
{
if (file_exists('../config.php')) {
self::$config = require_once '../config.php';
}
}
//-------------------------------------//
public static function c(string $index = ''): string
{
if (_exists(self::$config, $index)) {
return self::$config[$index];
}
return '';
}
}