Oublie d'un fichier de playlist

This commit is contained in:
stiti 2024-05-25 15:58:09 +02:00
parent dfb10221de
commit b28413726c

View File

@ -71,8 +71,6 @@ class Playlists extends CI_Controller {
} }
} }
public function add_song($playlist_id) { public function add_song($playlist_id) {
if ($this->input->post()) { if ($this->input->post()) {
$data = array( $data = array(
@ -175,6 +173,20 @@ class Playlists extends CI_Controller {
} }
} }
public function view($playlist_id) {
// Charger les détails de la playlist spécifique en fonction de son ID
$data['playlist'] = $this->Model_playlist->get_playlist_by_id($playlist_id);
// Charger les chansons de la playlist spécifique
$data['songs'] = $this->Model_playlist->get_songs_by_playlist($playlist_id);
// Charger la vue pour afficher les détails de la playlist
$this->load->view('layout/header_dark');
$this->load->view('playlist_view', $data);
$this->load->view('layout/footer_dark');
}
} }
?> ?>