Move constant definition to config.php

This commit is contained in:
KJ 2024-05-14 02:53:39 -04:00
parent b294b1d627
commit fa60ec5bb4
2 changed files with 1 additions and 3 deletions

View File

@ -8,4 +8,4 @@ define('DB_PASS', '');
//define('SITE_URL', '');
define('ROOT_DIR', __DIR__);
?>
define('ROOT_CORE', ROOT_DIR.'/src');

View File

@ -1,8 +1,6 @@
<?php
require_once('config.php');
define('ROOT_CORE', ROOT_DIR.'/src');
// Incluir clases
spl_autoload_register(function ($className) {
$fp = str_replace('\\','/',$className);