css menu create + playlist
This commit is contained in:
@@ -24,6 +24,7 @@ class Playlist extends CI_Controller {
|
||||
|
||||
public function SongPlaylist($playlist_id){
|
||||
$songPlaylists = $this->model_music->getSongOfPlaylist($playlist_id);
|
||||
$songs = $this->model_music->getSongOfAlbum($playlist_id);
|
||||
$playlists = $this->model_music->getPlaylist(); // Récupère toutes les playlists
|
||||
$id_playlist = null; // Initialise $id_playlist à null
|
||||
foreach ($playlists as $playlist_item) {
|
||||
@@ -32,7 +33,7 @@ class Playlist extends CI_Controller {
|
||||
break;
|
||||
}
|
||||
}
|
||||
$this->load->view('song_playlist', ['songPlaylists' => $songPlaylists, 'id_playlist' => $id_playlist]);
|
||||
$this->load->view('song_playlist', ['songPlaylists' => $songPlaylists, 'id_playlist' => $id_playlist, 'songs'=>$songs]);
|
||||
}
|
||||
|
||||
public function delete($playlist_id) {
|
||||
|
||||
Reference in New Issue
Block a user