Files
duckbrain/index.php
kj c9f467345b BREAKING CHANGE: Adhere to PSR-12 coding standards.
- Model: where_in method was renamed as whereIn.
2025-09-07 11:07:07 -03:00

24 lines
475 B
PHP

<?php
require_once('config.php');
// Incluir clases
spl_autoload_register(function ($className) {
$fp = str_replace('\\', '/', $className);
$name = basename($fp);
$dir = dirname($fp);
$file = ROOT_CORE . '/' . $dir . '/' . $name . '.php';
if (file_exists($file)) {
require_once $file;
}
});
// Incluir routers
$routers = glob(ROOT_CORE . '/Routers/*.php');
foreach ($routers as $file) {
require_once($file);
}
\Libs\Router::apply();