inscription connexion

This commit is contained in:
2024-06-10 11:16:43 +02:00
parent a27deb8ff4
commit 5089f0cd33
14 changed files with 247 additions and 31 deletions

View File

@@ -9,11 +9,25 @@ class Albums extends CI_Controller {
}
public function index(){
$albums = $this->model_music->getAlbums();
$genre = $this->model_music->getGenre();
$albums = $this->model_music->getAlbums($genre);
$playlists = $this->model_music->getPlaylist();
$this->load->view('layout/header');
$this->load->view('albums_list', ['albums' => $albums, 'playlists' => $playlists]);
$this->load->view('layout/footer');
$selectedGenre = '0';
$search = '';
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if(isset($_POST['Genre'])){
$selectedGenre = $_POST['Genre'];
}
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if(isset($_POST['recherche'])){
$search = $_POST['recherche'];
}
}
}
public function view($album_id){