diff --git a/ci/application/config/config.php b/ci/application/config/config.php index 80d6f99..3efe38d 100644 --- a/ci/application/config/config.php +++ b/ci/application/config/config.php @@ -23,7 +23,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); | a PHP script and you can easily do that on your own. | */ -$config['base_url'] = 'https://dwarves.iut-fbleau.fr/~boutaric/test/ci/'; +$config['base_url'] = '/~brigitte/SAEWEB2.2/ci/'; /* |-------------------------------------------------------------------------- diff --git a/ci/application/controllers/Albums.php b/ci/application/controllers/Albums.php index a62c2f7..5afc1b1 100644 --- a/ci/application/controllers/Albums.php +++ b/ci/application/controllers/Albums.php @@ -16,7 +16,7 @@ class Albums extends CI_Controller { } public function view($album_id){ - $songs = $this->model_music->getSongsByAlbum($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 } diff --git a/ci/application/controllers/Artistes.php b/ci/application/controllers/Artistes.php index 61a5960..2814e7b 100644 --- a/ci/application/controllers/Artistes.php +++ b/ci/application/controllers/Artistes.php @@ -14,4 +14,11 @@ class artistes extends CI_Controller { $this->load->view('layout/footer_artistes'); } + 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'); + } + } \ No newline at end of file