Last active
February 4, 2018 05:41
-
-
Save arvindsvt/fd411907576bcbcdf63241165b55f821 to your computer and use it in GitHub Desktop.
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
spl_autoload_register(function($class) { | |
$ns = explode('\\', strtolower($class)); | |
$class = array_pop($ns); | |
$ns = implode('\\', $ns) . '\\'; | |
require_once __DIR__ . '\\' . $ns . 'class.' . $class . '.php'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment