resolution bug

This commit is contained in:
Wilfried BRIGITTE 2024-05-30 10:33:06 +02:00
parent f7d8c15910
commit d980568035
3 changed files with 9 additions and 2 deletions

View File

@ -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/';
/*
|--------------------------------------------------------------------------

View File

@ -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
}

View File

@ -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');
}
}