progetto fatto precedentemente adattato al framework creato con il corso
filippo.bertilotti
2024-06-06 d40d8b5f91da41809d56408916f25b8e239b0acf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% extends "base.mvc.php" %}
 
{% block title %} Products {% endblock %}
 
{% block body %}
 
<h1>Products</h1>
 
<a href="/products/new">New Product</a>
 
<p>Total: {{ total }}</p>
 
{% foreach ($products as $product): %}
    <h2>
        <a href="/products/{{ product["id"] }}/show">
            {{ product["name"] }}
        </a>
    </h2>
{% endforeach; %}
 
{% endblock %}