diff options
Diffstat (limited to 'model/Album.php')
-rw-r--r-- | model/Album.php | 6 |
1 files changed, 1 insertions, 5 deletions
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 | |||
57 | if(!empty($erreur)) | 57 | if(!empty($erreur)) |
58 | {} | 58 | {} |
59 | } | 59 | } |
60 | 60 | ||
61 | // encodage avec un tableau simple | ||
62 | $albumJSON = json_encode([$titre, $annee, $pochette, $pochetteMini]); | 61 | $albumJSON = json_encode([$titre, $annee, $pochette, $pochetteMini]); |
63 | //var_dump($albumJSON); die(); | 62 | //var_dump($albumJSON); die(); |
64 | 63 | ||
65 | // encodage avec un tableau associatif | ||
66 | //$albumJSON = json_encode(['titre' => $titre, 'annee' => $annee,'pochette' => $pochette]); | ||
67 | |||
68 | $nom_fichier = 'data/' . $this->page . '/' . $this->format . '/' . $this->time . '.' . $this->format; | 64 | $nom_fichier = 'data/' . $this->page . '/' . $this->format . '/' . $this->time . '.' . $this->format; |
69 | 65 | ||
70 | $fichier = fopen($nom_fichier, 'w'); // w pour créer ou écraser | 66 | $fichier = fopen($nom_fichier, 'w'); // w pour créer ou écraser |