playlist unique au compte connecté
This commit is contained in:
@@ -3,22 +3,25 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class artistes extends CI_Controller {
|
||||
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
$this->load->model('model_music');
|
||||
}
|
||||
public function index(){
|
||||
$artistes = $this->model_music->getArtists();
|
||||
$playlists = $this->model_music->getPlaylist();
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('artistes_list',['artistes'=>$artistes, 'playlists' => $playlists]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
$this->load->model('model_music');
|
||||
$this->load->library('session');
|
||||
}
|
||||
public function index(){
|
||||
$artistes = $this->model_music->getArtists();
|
||||
$mail = $this->session->userdata('mail');
|
||||
$playlists = $this->model_music->getPlaylist($mail);
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('artistes_list',['artistes'=>$artistes, 'playlists' => $playlists]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
|
||||
public function view($AlbumsOfArtistId){
|
||||
public function view($AlbumsOfArtistId){
|
||||
$artistes = $this->model_music->getArtists();
|
||||
$AlbumsOfArtists = $this->model_music->getAlbumsOfArtist($AlbumsOfArtistId);
|
||||
$playlists = $this->model_music->getPlaylist();
|
||||
$mail = $this->session->userdata('mail');
|
||||
$playlists = $this->model_music->getPlaylist($mail);
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('albums_artist_list', ['AlbumsOfArtists' => $AlbumsOfArtists, 'playlists' => $playlists, 'artist_id' => $AlbumsOfArtistId, 'artistes' => $artistes]);
|
||||
$this->load->view('layout/footer');
|
||||
|
||||
Reference in New Issue
Block a user