debut playlist
This commit is contained in:
parent
a2812034ac
commit
a0af043f68
17
ci/application/controllers/Chansons.php
Normal file
17
ci/application/controllers/Chansons.php
Normal 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');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
0
ci/application/controllers/Playlist.php
Normal file
0
ci/application/controllers/Playlist.php
Normal file
@ -17,9 +17,12 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><strong>Music APP</strong></li>
|
<li><strong>Music APP</strong></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<input type="search" id="site-search" name="q"/>
|
||||||
|
<input type="submit" value="Rechercher" \>
|
||||||
<ul>
|
<ul>
|
||||||
<li><?=anchor('albums','Albums');?></li>
|
<li><?=anchor('albums','Albums');?></li>
|
||||||
<li><?=anchor('artistes','Artistes');?></li>
|
<li><?=anchor('artistes','Artistes');?></li>
|
||||||
<li><?=anchor('playlist','Playlist');?></li>
|
<li><?=anchor('playlist','Playlist');?></li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
Loading…
Reference in New Issue
Block a user