pushHandler($defaultHandler); $whoops->register(); // Require the basic configuration file require(MM_APP_PATH . 'config/config.php'); // Start the autoloader spl_autoload_register(function($name) { if ($name == '') return; // load by namespace $names = explode('\\', trim($name)); $ns_path = MM_BASE_PATH . '/' . implode('/', $names) . '.php'; if (is_file($ns_path)) { require_once($ns_path); } }); // Require the most important files require(MM_SYS_PATH . 'common.php'); // And away we go! route(); // End of index.php