Created
January 11, 2017 10:09
-
-
Save jonathangreco/2f0b1a13a40135063ec9da88e4ba7de7 to your computer and use it in GitHub Desktop.
Little custom autoloading for students
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 | |
chdir(dirname(__DIR__)); | |
define('CLASS_DIR', '[file]'); | |
set_include_path(get_include_path().PATH_SEPARATOR.CLASS_DIR); | |
spl_autoload_extensions('.php'); | |
spl_autoload_register(); | |
ini_set('xdebug.var_display_max_depth', 4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment