finition css
This commit is contained in:
@@ -9,17 +9,18 @@ class Playlist extends CI_Controller {
|
||||
$this->load->library('form_validation');
|
||||
}
|
||||
public function index(){
|
||||
$user = $this->session->userdata('userId');
|
||||
if ($recherche=filter_input(INPUT_GET,'recherche') == false or $recherche=filter_input(INPUT_GET,'recherche') == null){
|
||||
$playlists = $this->model_music->getPlaylist();
|
||||
$playlists = $this->model_music->getPlaylist($user);
|
||||
}else{
|
||||
$recherche=filter_input(INPUT_GET,'recherche');
|
||||
$playlists = $this->model_music->getSearchPlaylist($recherche);
|
||||
$playlists = $this->model_music->getSearchPlaylist($recherche,$user);
|
||||
}
|
||||
$this->load->view('layout/header');
|
||||
if ($playlists == false){
|
||||
$page = preg_split('/[\/]/',$_SERVER['REQUEST_URI']);
|
||||
$this->load->view('error',['page'=>$page[count($page)-1]]);
|
||||
$playlists = $this->model_music->getPlaylist();
|
||||
$playlists = $this->model_music->getPlaylist($user);
|
||||
}
|
||||
$this->load->view('playlist_list',['playlists'=>$playlists]);
|
||||
$this->load->view('layout/footer');
|
||||
|
||||
Reference in New Issue
Block a user