autoloader.php 201 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 <?php spl_autoload_register(function($class) { $file = __DIR__.'/lib/'.strtr($class, '\\', '/').'.php'; if (file_exists($file)) { require $file; return true; } });