/ Published in: PHP
URL: http://www.brandonsavage.net/making-life-better-with-the-spl-autoloader/
check out why the getincludepath() was appended to the new path.
Expand |
Embed | Plain Text
<?php function autoload($className) { require($className . '.php'); } spl_autoload_register('autoload'); $Database = new Database(); ?>
You need to login to post a comment.
