First commit.

This commit is contained in:
kj
2020-03-07 23:37:19 -04:00
commit 9539b43212
10 changed files with 643 additions and 0 deletions

24
index.php Normal file
View File

@ -0,0 +1,24 @@
<?php
require_once('config.php');
// Incluir clases
spl_autoload_register(function ($className) {
$fp = str_replace('\\','/',$className);
$name = basename($fp);
$dir = dirname($fp);
$file = ROOT_DIR.'/src/'.$dir.'/'.$name.'.php';
if (file_exists($file)) {
require_once $file;
return;
}
});
// Incluir routers
$routers = glob(ROOT_DIR.'/src/Routers/*.php');
foreach($routers as $file){
require_once($file);
}
\Libs\Router::apply();
?>