debut playlist

This commit is contained in:
Julian GALLEGO 2024-05-28 14:36:30 +02:00
parent a2812034ac
commit a0af043f68
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,17 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Albums extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model('model_music');
}
public function index(){
$albums = $this->model_music->getAlbums();
$this->load->view('layout/header');
$this->load->view('albums_list',['albums'=>$albums]);
$this->load->view('layout/footer');
}
}

View File

View File

@ -17,9 +17,12 @@
<ul>
<li><strong>Music APP</strong></li>
</ul>
<input type="search" id="site-search" name="q"/>
<input type="submit" value="Rechercher" \>
<ul>
<li><?=anchor('albums','Albums');?></li>
<li><?=anchor('artistes','Artistes');?></li>
<li><?=anchor('playlist','Playlist');?></li>
</ul>
</nav>