From f4df3e9b9df3d54ce58796f923da70ff7e566018 Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 26 Aug 2025 01:15:33 +0200 Subject: =?UTF-8?q?s=C3=A9paration=20bloc=20/=20mise=20en=20page,=20bloc?= =?UTF-8?q?=20sp=C3=A9cial=20pour=20les=20actus,=20renommage=20de=20classe?= =?UTF-8?q?s,=20fichiers,=20etc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/installation.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/installation.php') diff --git a/src/installation.php b/src/installation.php index 5adb697..dd3aa35 100644 --- a/src/installation.php +++ b/src/installation.php @@ -7,6 +7,7 @@ use App\Entity\Page; use App\Entity\Node; use App\Entity\NodeData; use App\Entity\Image; +use App\Entity\Presentation; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\ORM\EntityManager; @@ -116,6 +117,10 @@ function makeStartPage(EntityManager $entityManager){ $head_new_page = new Node('head', NULL, ['css_array' => ['body', 'head', 'nav', 'new_page', 'foot'], 'js_array' => ['main', 'new_page']], 1, NULL, $new_page, NULL); $bloc_new_page = new Node('new_page', NULL, [], 1, $main, $new_page, NULL); + /* -- table presentation -- */ + $list = new Presentation('list'); + $grid = new Presentation('grid'); + /* -- table image -- */ // paramètres: file_name, file_path, file_path_mini, mime_type, alt $favicon = new Image("favicon48x48.png", NULL, "assets/favicon48x48.png", "image/png", "favicon"); @@ -162,6 +167,10 @@ function makeStartPage(EntityManager $entityManager){ $entityManager->persist($bloc_edit_menu); $entityManager->persist($head_new_page); $entityManager->persist($bloc_new_page); + + /* -- table presentation -- */ + $entityManager->persist($list); + $entityManager->persist($grid); /* -- table image -- */ $entityManager->persist($favicon); -- cgit v1.2.3