-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Mejorada la documentación de Paginator y Email. - Retocados los estilos. - Añadidos templates Neon y Dark. - RetroTemplate ahora se llama Retro.
- Loading branch information
1 parent
b98246a
commit f0adf2e
Showing
20 changed files
with
1,108 additions
and
721 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
/* | ||
* | ||
* Fichero: autoloadNS.php | ||
* Autor: Robert Sallent | ||
* Última mofidicación: 24/02/2023 | ||
* | ||
* Permitirá la carga de clases automática a partir de un espacio de nombres | ||
* | ||
* Aún no se aplica, se usará más adelante cuando se actualicen los NS de las clases | ||
* y se reestructure el sistema de carpetas y ficheros del framework. | ||
* | ||
*/ | ||
|
||
// al usar namespaces, llegará el nombre plenamente cualificado, | ||
// esto es el namespace y el nombre de la clase. | ||
function load(string $clase = ''){ | ||
|
||
// reemplaza las contrabarras por barras y añade la extensión | ||
$ruta = str_replace('\\', '/', $clase).'.php'; | ||
|
||
// comprueba si el fichero existe e intenta cargarlo | ||
if(is_readable($ruta)) | ||
require_once $ruta; // carga la clase | ||
} | ||
|
||
// registrar los autoloaders | ||
spl_autoload_register("load"); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.