/*
*autoloader makes it so that we dont have to requre
*
*/
spl_autoload_register(function ($class){
$path = basePath('Framework/' . $class . '.php');
if (file_exists($path)){
require $path;
}
});
// basepath
function basePath($path = '')
{
return __DIR__ . '/' . $path;
}