BREAKING CHANGE: Adhere to PSR-12 coding standards.
- Model: where_in method was renamed as whereIn.
This commit is contained in:
13
index.php
13
index.php
@ -1,20 +1,23 @@
|
||||
<?php
|
||||
|
||||
require_once('config.php');
|
||||
|
||||
// Incluir clases
|
||||
spl_autoload_register(function ($className) {
|
||||
$fp = str_replace('\\','/',$className);
|
||||
$fp = str_replace('\\', '/', $className);
|
||||
$name = basename($fp);
|
||||
$dir = dirname($fp);
|
||||
$file = ROOT_CORE.'/'.$dir.'/'.$name.'.php';
|
||||
if (file_exists($file))
|
||||
$file = ROOT_CORE . '/' . $dir . '/' . $name . '.php';
|
||||
if (file_exists($file)) {
|
||||
require_once $file;
|
||||
}
|
||||
});
|
||||
|
||||
// Incluir routers
|
||||
$routers = glob(ROOT_CORE.'/Routers/*.php');
|
||||
$routers = glob(ROOT_CORE . '/Routers/*.php');
|
||||
|
||||
foreach($routers as $file)
|
||||
foreach ($routers as $file) {
|
||||
require_once($file);
|
||||
}
|
||||
|
||||
\Libs\Router::apply();
|
||||
|
Reference in New Issue
Block a user