Add initial project files
This commit is contained in:
commit
0b21896cd5
6 changed files with 96 additions and 0 deletions
13
includes/core_autoload.php
Normal file
13
includes/core_autoload.php
Normal 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');
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue