diff --git a/www/dynamic_web_app/router.php b/www/dynamic_web_app/router.php index 357fb7d..8c0c9e7 100644 --- a/www/dynamic_web_app/router.php +++ b/www/dynamic_web_app/router.php @@ -4,6 +4,9 @@ $uri = parse_url($_SERVER['REQUEST_URI']); $routes = [ '/dynamic_web_app/' => 'controllers/index.php', + '/dynamic_web_app/index.php' => 'controllers/index.php', + '/dynamic_web_app/index.html' => 'controllers/index.php', + '/dynamic_web_app/index' => 'controllers/index.php', '/dynamic_web_app/about' => 'controllers/about.php', '/dynamic_web_app/contact' => 'controllers/contact.php' ]; diff --git a/www/fundamentals/index.php b/www/fundamentals/index.php index c332905..fa6ec70 100644 --- a/www/fundamentals/index.php +++ b/www/fundamentals/index.php @@ -3,14 +3,23 @@ $books = [ "1984", "Brave New World", "Fahrenheit 451", - "The Great Gatsby" - + "The Great Gatsby", + "To Kill a Mockingbird", + "Moby Dick", + "The Catcher in the Rye", + "Pride and Prejudice", + "The Lord of the Rings", + "The Hobbit", + "War and Peace", + "The Odyssey", + "Crime and Punishment", + "The Brothers Karamazov" ]; $assosiative = [ - "name" => "Bookname", - "author" => "Me", - "date" => "today" + "name" => "Brave New World", + "author" => "Aldous Huxley", + "date" => "1932" ]; function filter(array $items): array @@ -23,7 +32,7 @@ function filter(array $items): array } } return $filtered; - + } function filterGeneric(array $items, callable $filter): array diff --git a/www/fundamentals/index.view.php b/www/fundamentals/index.view.php index 2495009..15979a9 100644 --- a/www/fundamentals/index.view.php +++ b/www/fundamentals/index.view.php @@ -3,7 +3,7 @@
-+ As part of my journey following the Laracasts PHP Path, I've created several projects that demonstrate my growing expertise in PHP, Webdesign, and database management. Below, you'll find links to these projects, showcasing how I've applied key concepts to develop test applications. +
+Recommended Books
+ +A simple demo site that displays a list of recommended books, focusing on PHP fundamentals like templating.
+ +Dynamic Web App
+ +A more advanced project featuring dynamic routing and interaction with databases. This app demonstrates how to manage data flows and how to handle requests.
+ +