ajout fichier css + php, fusion - correction beug php

This commit is contained in:
2024-06-04 15:00:24 +02:00
parent e1831b92e8
commit ee261d214e
27 changed files with 240 additions and 430 deletions

View File

@@ -10,9 +10,9 @@ class Albums extends CI_Controller {
public function index(){
$albums = $this->model_music->getAlbums();
$this->load->view('layout/header_album');
$this->load->view('layout/header');
$this->load->view('albums_list', ['albums' => $albums]);
$this->load->view('layout/footer_album');
$this->load->view('layout/footer');
}
public function view($album_id){
@@ -23,9 +23,9 @@ class Albums extends CI_Controller {
log_message('debug', 'Songs: ' . print_r($songs, true));
$this->load->view('layout/header_album');
$this->load->view('layout/header');
$this->load->view('song_album_list', ['songs' => $songs]);
$this->load->view('layout/footer_album');
$this->load->view('layout/footer');
}
}
?>

View File

@@ -9,16 +9,16 @@ class artistes extends CI_Controller {
}
public function index(){
$artistes = $this->model_music->getArtists();
$this->load->view('layout/header_artistes');
$this->load->view('layout/header');
$this->load->view('artistes_list',['artistes'=>$artistes]);
$this->load->view('layout/footer_artistes');
$this->load->view('layout/footer');
}
public function view($AlbumsOfArtistId){
$AlbumsOfArtist = $this->model_music->getAlbumsOfArtist($AlbumsOfArtistId);
$this->load->view('layout/header_artistes');
$this->load->view('albums_artist_list',['AlbumsOfArtist'=>$AlbumsOfArtist]);
$this->load->view('layout/footer_artistes');
$AlbumsOfArtists = $this->model_music->getAlbumsOfArtist($AlbumsOfArtistId);
$this->load->view('layout/header');
$this->load->view('albums_artist_list',['AlbumsOfArtists'=>$AlbumsOfArtists]);
$this->load->view('layout/footer');
}
}

View File

@@ -10,8 +10,8 @@ class Song extends CI_Controller {
public function view($album_id){
$songs = $this->model_music->getSongOfAlbum($album_id);
$this->load->view('layout/header_song');
$this->load->view('layout/header');
$this->load->view('song_album_list',['songs'=>$songs]);
$this->load->view('layout/footer_song');
$this->load->view('layout/footer');
}
}

View File

@@ -8,8 +8,7 @@ class welcome extends CI_Controller {
$this->load->model('model_music');
}
public function index(){
$this->load->view('layout/header');
$this->load->view('layout/footer');
$this->load->view('Welcome');
}
}