ajout liste artiste

This commit is contained in:
2024-05-22 12:04:00 +02:00
parent 4782c1edc2
commit cb376b0e4c
3 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Artistes extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model('model_music');
$this->load->helper('html');
$this->load->helper('url');
}
public function index(){
$artistes = $this->model_music->getArtistes();
$this->load->view('layout/header');
$this->load->view('artistes_list',['artistes'=>$artistes]);
$this->load->view('layout/footer');
}
}