Affichage de fausse de données
This commit is contained in:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user