From c2428b3a8f97ff3a5c125944ac2b6aee9b081734 Mon Sep 17 00:00:00 2001 From: filippo.bertilotti <filippobertilotti@gmail.com> Date: Tue, 28 May 2024 12:00:57 +0200 Subject: [PATCH] aggiunta metodo set per la dipendeza Viewer (parte 150) --- views/Products/show.php | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/views/Products/show.php b/views/Products/show.php index a680cdc..dbe230b 100644 --- a/views/Products/show.php +++ b/views/Products/show.php @@ -1,5 +1,9 @@ <body> - Show the product with ID <?= $id ?> here + <h1><?= $product["name"] ?></h1> + <p><?= $product["description"] ?></p> + + <p><a href="/products/<?= $product["id"] ?>/edit" >Edit</a></p> + <p><a href="/products/<?= $product["id"] ?>/delete" >Delete</a></p> </body> </html> -- Gitblit v1.8.0