Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once 'config.php';
- spl_autoload_register(
- function($className) {
- $rootPath = $_SERVER['DOCUMENT_ROOT'].DIRECTORY_SEPARATOR;
- $classPath = str_replace('\\', DIRECTORY_SEPARATOR,$className);
- require_once($rootPath.$classPath.'.php');
- }
- );
- require_once 'route.php';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement