Minor corrections
This commit is contained in:
@@ -6,7 +6,6 @@ require __DIR__ . '/../vendor/autoload.php';
|
|||||||
|
|
||||||
use Slim\Factory\AppFactory;
|
use Slim\Factory\AppFactory;
|
||||||
use Slim\Views\TwigMiddleware;
|
use Slim\Views\TwigMiddleware;
|
||||||
use Throwable;
|
|
||||||
|
|
||||||
// Charger et créer les services centralisés
|
// Charger et créer les services centralisés
|
||||||
$services = App\Factories\ServiceFactory::createServices();
|
$services = App\Factories\ServiceFactory::createServices();
|
||||||
|
|||||||
@@ -10,4 +10,5 @@
|
|||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>Aucun article publié.</p>
|
<p>Aucun article publié.</p>
|
||||||
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% extends "layout.twig" %}
|
{% extends "layout.twig" %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if post is defined and post.id is defined %}
|
{% if post is defined and post is not null and post.id is defined %}
|
||||||
Éditer l’article
|
Éditer l’article
|
||||||
{% else %}
|
{% else %}
|
||||||
Créer un article
|
Créer un article
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>
|
<h2>
|
||||||
{% if post is defined and post.id is defined %}
|
{% if post is defined and post is not null and post.id is defined %}
|
||||||
Éditer l’article
|
Éditer l’article
|
||||||
{% else %}
|
{% else %}
|
||||||
Créer un article
|
Créer un article
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<button type="submit">
|
<button type="submit">
|
||||||
{% if post is defined and post.id is defined %}Mettre à jour{% else %}Enregistrer{% endif %}
|
{% if post is defined and post is not null and post.id is defined %}Mettre à jour{% else %}Enregistrer{% endif %}
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user