Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prueba carga
- <?php
- class PruebaCarga {
- public function __construct()
- {
- echo "clase cargada Magicamente";
- }
- }
- *************** autoloader*************
- <?php
- function miAutoCargador($clase){
- require "class/".$clase.".php";
- }
- spl_autoload_register("miAutoCargador");
- //Probemos si carga
- $x = new PruebaCarga();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement