resolution bug
This commit is contained in:
parent
f7d8c15910
commit
d980568035
@ -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.
|
| 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/';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
@ -16,7 +16,7 @@ class Albums extends CI_Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function view($album_id){
|
public function view($album_id){
|
||||||
$songs = $this->model_music->getSongsByAlbum($album_id);
|
$songs = $this->model_music->getSongOfAlbum($album_id);
|
||||||
if (empty($songs)) {
|
if (empty($songs)) {
|
||||||
$songs = []; // Assurez-vous que $songs est un tableau vide si aucune chanson n'est trouvée
|
$songs = []; // Assurez-vous que $songs est un tableau vide si aucune chanson n'est trouvée
|
||||||
}
|
}
|
||||||
|
@ -14,4 +14,11 @@ class artistes extends CI_Controller {
|
|||||||
$this->load->view('layout/footer_artistes');
|
$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');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user