Ajout search bar , genre...

This commit is contained in:
2024-06-03 16:51:37 +02:00
parent affc3760d3
commit edadb309a8
7 changed files with 222 additions and 13 deletions

View File

@@ -0,0 +1,23 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Music extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model('model_music');
}
public function index(){
$genre = $this->input->get('genre');
$order = $this->input->get('order');
$musics = $this->model_music->getMusics($genre, $order);
$genres = $this->model_music->researchtype();
$this->load->view('layout/header',['genres'=>$genres]);
$this->load->view('musiques_name',['musics'=>$musics]);
$this->load->view('layout/footer');
}
}