|
@@ -6,6 +6,11 @@
|
|
|
require_once __DIR__ . "/autoloader.php";
|
|
require_once __DIR__ . "/autoloader.php";
|
|
|
AutoLoader::registerLoader();
|
|
AutoLoader::registerLoader();
|
|
|
|
|
|
|
|
|
|
+Router::scan("routes/*.php");
|
|
|
|
|
+$route = Router::findRoute($_SERVER["REQUEST_URI"], $_SERVER["REQUEST_METHOD"]);
|
|
|
|
|
+
|
|
|
|
|
+var_dump($route);
|
|
|
|
|
+
|
|
|
// Since we now have an autoloader, we can just "use" the PageContext class and the autloader will actually
|
|
// Since we now have an autoloader, we can just "use" the PageContext class and the autloader will actually
|
|
|
// find and load it. The page context represents all the contextual information that we have in our current
|
|
// find and load it. The page context represents all the contextual information that we have in our current
|
|
|
// request and we use it to define our page rendering mechanism. This mechanism is mostly based on some
|
|
// request and we use it to define our page rendering mechanism. This mechanism is mostly based on some
|