diff --git a/example/public/index.php b/example/public/index.php index d126b64..08c528a 100644 --- a/example/public/index.php +++ b/example/public/index.php @@ -19,7 +19,8 @@ JSMF\Request::addRoute('/^\/disclaimer\/?$/i', 'misc', 'index', 'disclaimer'); // route a request to /disclaimer to the disclaimer Action in the IndexController in the module "misc" JSMF\Request::addRoute('/^\/privacy\/?$/i', 'misc', 'index', 'privacy'); - // run the application + // register the autoloader and run the application + JSMF\Application::registerAutoloader(); JSMF\Application::run(); // output the applications response (can be HTML, JSON ...)