mirror of
https://grond.iut-fbleau.fr/stiti/SAE_2.02
synced 2024-12-27 01:12:18 +01:00
Oublie d'un fichier de playlist
This commit is contained in:
parent
dfb10221de
commit
b28413726c
@ -71,8 +71,6 @@ class Playlists extends CI_Controller {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function add_song($playlist_id) {
|
||||
if ($this->input->post()) {
|
||||
$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');
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user