Test pages * 1/?

This commit is contained in:
Vincent
2024-06-04 23:26:09 +02:00
parent a59966d698
commit f0260ba791
6 changed files with 54 additions and 9 deletions

View File

@@ -6,7 +6,7 @@ class Artistes extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model('model_music');
$this->load->library('session'); // La session est déjà chargée via autoload.php, mais par précaution.
$this->load->library('session');
}
public function index(){
@@ -14,7 +14,7 @@ class Artistes extends CI_Controller {
$order = $this->input->get('order');
$query = $this->input->get('query');
$artists = $this->model_music->getArtists($genre, $order, $query); // Pass $query
$artists = $this->model_music->getArtists($genre, $order, $query);
$genres = $this->model_music->researchtype();
$is_logged_in = $this->session->userdata('logged_in');