From c305c85e72a649c5818a36faeb47b2bd72553a52 Mon Sep 17 00:00:00 2001 From: brigitte Date: Tue, 28 May 2024 11:55:36 +0200 Subject: [PATCH] chanson des albums fin --- ci/application/controllers/Albums.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ci/application/controllers/Albums.php b/ci/application/controllers/Albums.php index a4d9a3d..7b7e917 100644 --- a/ci/application/controllers/Albums.php +++ b/ci/application/controllers/Albums.php @@ -13,5 +13,12 @@ class Albums extends CI_Controller { $this->load->view('albums_list',['albums'=>$albums]); $this->load->view('layout/footer'); } + + public function view($album_id){ + $songs = $this->model_music->getSongOfAlbum($album_id); + $this->load->view('layout/header'); + $this->load->view('song_album_list',['songs'=>$songs]); + $this->load->view('layout/footer'); + } }