Created
September 13, 2010 10:32
-
-
Save shameerc/577109 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
//for a number of classes to load automatically | |
//We can define the following function in our file | |
function __autoload($class_name) | |
{ | |
$path = str_replace("_", "/", $class_name); | |
require_once $path.".php"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment