diff --git a/index.php b/index.php index 0b2ef9c..5315b1f 100644 --- a/index.php +++ b/index.php @@ -7,10 +7,8 @@ spl_autoload_register(function ($className) { $name = basename($fp); $dir = dirname($fp); $file = ROOT_CORE.'/'.$dir.'/'.$name.'.php'; - if (file_exists($file)) { + if (file_exists($file)) require_once $file; - return; - } }); // Incluir routers