ajout chansons

This commit is contained in:
2024-05-27 13:32:33 +02:00
parent 5693312077
commit aa05e82ca5
4 changed files with 49 additions and 0 deletions

View File

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