Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spl_autoload_register(function ($class_name) {
- $file = __DIR__ . DIRECTORY_SEPARATOR . str_replace('\\', DIRECTORY_SEPARATOR, $class_name) . '.php';
- if (file_exists($file)):
- require_once $file;
- endif;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement