vraiment beau boulot
This commit is contained in:
21
codeigniter/application/controllers/Artistes.php
Normal file
21
codeigniter/application/controllers/Artistes.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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');
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user