Created
October 25, 2011 13:59
-
-
Save mbernson/1312816 to your computer and use it in GitHub Desktop.
MB autoload
This file contains hidden or 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
<?php | |
/* | |
* Autoloader | |
*/ | |
function mb_autoload($class_name) | |
{ | |
require_once('classes/'.$class_name.'.class.php'); | |
} | |
spl_autoload_register('mb_autoload'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment