Minor corrections

This commit is contained in:
julien
2026-03-09 12:34:39 +01:00
parent 4342751c70
commit e65d79cccb
3 changed files with 6 additions and 6 deletions

View File

@@ -6,7 +6,6 @@ require __DIR__ . '/../vendor/autoload.php';
use Slim\Factory\AppFactory;
use Slim\Views\TwigMiddleware;
use Throwable;
// Charger et créer les services centralisés
$services = App\Factories\ServiceFactory::createServices();

View File

@@ -10,4 +10,5 @@
</div>
{% else %}
<p>Aucun article publié.</p>
{% endfor %}
{% endblock %}

View File

@@ -1,7 +1,7 @@
{% extends "layout.twig" %}
{% 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 larticle
{% else %}
Créer un article
@@ -10,7 +10,7 @@
{% block content %}
<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 larticle
{% else %}
Créer un article
@@ -33,7 +33,7 @@
</p>
<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>
</form>