Affichage de fausse de données

This commit is contained in:
Clément Laporte
2024-06-05 12:03:23 +02:00
parent 7264d1c1f8
commit 798fafbcd0
3 changed files with 64 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{% extends 'base.html.twig' %}
{% block title %}Hello SpeciesController!{% endblock %}
{% block title %}Herbarium - Espèces{% endblock %}
{% block body %}
<style>
@@ -9,12 +9,21 @@
</style>
<div class="example-wrapper">
<h1>Hello {{ controller_name }}! ✅</h1>
<h1>Liste des espèces</h1>
<dl>
{% for specie in species %}
<dt>
<a href="">
🌿 {{ specie.getVernacularName }}
</a>
</dt>
<dd >
🔬 Nom Scientifique : {{ specie.getScientificName }}<br/>
📍 Region : {{ specie.getRegion }}
</dd><br/>
{% endfor %}
</dl>
This friendly message is coming from:
<ul>
<li>Your controller at <code>C:/wamp64/www/Symfony/herbarium/src/Controller/SpeciesController.php</code></li>
<li>Your template at <code>C:/wamp64/www/Symfony/herbarium/templates/species/index.html.twig</code></li>
</ul>
</div>
{% endblock %}