From a47fe7f5d16f598916b0b6095bd41085bcb03b64 Mon Sep 17 00:00:00 2001 From: polo Date: Wed, 20 Jul 2022 02:32:22 +0200 Subject: miniatures articles 2 --- model/Album.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'model/Album.php') diff --git a/model/Album.php b/model/Album.php index 95dac50..b4b7afe 100644 --- a/model/Album.php +++ b/model/Album.php @@ -57,14 +57,10 @@ class Album extends Article if(!empty($erreur)) {} } - - // encodage avec un tableau simple + $albumJSON = json_encode([$titre, $annee, $pochette, $pochetteMini]); //var_dump($albumJSON); die(); - // encodage avec un tableau associatif - //$albumJSON = json_encode(['titre' => $titre, 'annee' => $annee,'pochette' => $pochette]); - $nom_fichier = 'data/' . $this->page . '/' . $this->format . '/' . $this->time . '.' . $this->format; $fichier = fopen($nom_fichier, 'w'); // w pour créer ou écraser -- cgit v1.2.3