ajout connexion,ajout playlist, ajout chanson dans playlist, ajout filtre et tri pour chanson et album

This commit is contained in:
2024-06-10 09:52:24 +02:00
parent bdec7abeea
commit ceb305ab7d
17 changed files with 748 additions and 59 deletions

View File

@@ -6,8 +6,6 @@ class Artistes extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model('model_music');
$this->load->helper('html');
$this->load->helper('url');
}
public function index(){
if ($recherche=filter_input(INPUT_GET,'recherche') == false or $recherche=filter_input(INPUT_GET,'recherche') == null){
@@ -18,7 +16,7 @@ class Artistes extends CI_Controller {
}
$this->load->view('layout/header');
if ($artistes == false){
$page = preg_split('/[\/]/',$_SERVER['HTTP_REFERER']);
$page = preg_split('/[\/]/',$_SERVER['REQUEST_URI']);
$this->load->view('error',['page'=>$page[count($page)-1]]);
$artistes = $this->model_music->getArtistes();
}