22 lines
521 B
PHP
22 lines
521 B
PHP
<?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');
|
|
$this->load->helper('form');
|
|
}
|
|
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');
|
|
}
|
|
|
|
}
|
|
|