1
2
3
4
5
6
7
8
9
10
11
12
13
14
| <body>
| <h1>Products</h1>
|
| <a href="/products/new">New Product</a>
|
| <?php foreach ($products as $product): ?>
| <h2>
| <a href="/products/<?= $product["id"] ?>/show">
| <?= htmlspecialchars($product["name"]) ?>
| </a>
| </h2>
| <?php endforeach; ?>
| </body>
| </html>
|
|