src/App/Controllers/products.php
@@ -9,13 +9,16 @@ $products = $model->getData(); $viewer = new Viewer; require "views/products_index.php"; echo $viewer->render("products_index.php", [ "products"=> $products ]); } public function show(string $id) { var_dump($id); require "views/products_show.php"; $viewer = new Viewer; echo $viewer->render("Products/show.php", [ "id"=> $id ]); } public function showPage(string $title, string $id, string $page) {