Commentaires
This commit is contained in:
@@ -3,7 +3,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Artistes extends CI_Controller {
|
||||
|
||||
private $sort = 'Tri';
|
||||
private $sort = 'Tri'; // Variable pour définir l'ordre de tri par défaut
|
||||
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
@@ -14,14 +14,14 @@ class Artistes extends CI_Controller {
|
||||
}
|
||||
|
||||
public function index(){
|
||||
$artistes = $this->model_music_artistes->getArtistes();
|
||||
$artistes = $this->model_music_artistes->getArtistes(); // recuperer tout les artistes
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('artistes_list', ['artistes'=>$artistes]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
|
||||
public function tri(){
|
||||
$Ctri = $this->input->get('Ctri');
|
||||
$Ctri = $this->input->get('Ctri'); // récupération du critère de trie depuis l'url
|
||||
$trie = $this->model_music_artistes->get_tri_Artistes($Ctri);
|
||||
$num_results = count($trie);
|
||||
$this->load->view('layout/header');
|
||||
|
Reference in New Issue
Block a user