Add initial project files

This commit is contained in:
Mateusz Pieła 2021-04-25 19:59:48 +02:00
commit 0b21896cd5
6 changed files with 96 additions and 0 deletions

View file

@ -0,0 +1,13 @@
<?php
require ROOT_DIR . "/vendor/autoload.php";
function autoLoader($classname) {
$file = ROOT_DIR . '\\' . $classname . '.php';
print_r($file);
$file = str_replace('\\', DIRECTORY_SEPARATOR, $file);
include_once $file;
}
spl_autoload_register('autoLoader');
?>