View Artist 4/?

This commit is contained in:
2024-06-04 17:22:03 +02:00
parent a5e3920fb0
commit 72deabb88f
3 changed files with 25 additions and 37 deletions

View File

@@ -3,28 +3,18 @@ defined('BASEPATH') OR exit('No direct script access allowed');
class Artist 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');
$artists = $this->model_music->getArtists($genre, $order);
$genres = $this->model_music->researchtype();
$is_logged_in = $this->session->userdata('logged_in');
$data = array(
'artists' => $artists,
'genres' => $genres,
'is_logged_in' => $is_logged_in
);
$this->load->view('layout/header', $data);
$this->load->view('artistes_list', $data);
$this->load->view('layout/footer');
}
}
public function __construct(){
parent::__construct();
$this->load->model('model_music');
}
public function index(){
$genre = $this->input->get('genre');
$order = $this->input->get('order');
$artists = $this->model_music->getArtists($genre, $order);
$genres = $this->model_music->researchtype();
$this->load->view('layout/header',['genres'=>$genres]);
$this->load->view('artists_name',['artists'=>$artists]);
$this->load->view('layout/footer');
}
}