crea BD playlist + liste des playlists

This commit is contained in:
2024-05-30 16:14:38 +02:00
parent 83f2697666
commit f1638ed865
7 changed files with 44 additions and 6 deletions

View File

@@ -18,9 +18,9 @@ class Albums extends CI_Controller {
public function view($album_id){
$songs = $this->model_music->getSongOfAlbum($album_id);
if (empty($songs)) {
$songs = []; // Assurez-vous que $songs est un tableau vide si aucune chanson n'est trouvée
$songs = [];
}
// Debugging: Log the $songs variable to see its content
log_message('debug', 'Songs: ' . print_r($songs, true));
$this->load->view('layout/header_album');