Compare commits

...

2 Commits

Author SHA1 Message Date
KJ
9a1e5a2379 Add some explanatory comments to config. 2024-05-14 02:54:23 -04:00
KJ
fa60ec5bb4 Move constant definition to config.php 2024-05-14 02:53:39 -04:00
2 changed files with 5 additions and 4 deletions

View File

@ -1,11 +1,14 @@
<?php
// Configuración de la base de datos
define('DB_TYPE', 'mysql');
define('DB_HOST', 'localhost');
define('DB_NAME', '');
define('DB_USER', '');
define('DB_PASS', '');
//define('SITE_URL', '');
// Configuración del sitio
define('SITE_URL', '');
// Configuración avanzada
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);