diff --git a/ci/application/controllers/Chansons.php b/ci/application/controllers/Chansons.php new file mode 100644 index 0000000..894234c --- /dev/null +++ b/ci/application/controllers/Chansons.php @@ -0,0 +1,17 @@ +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'); + } + +} diff --git a/ci/application/controllers/Playlist.php b/ci/application/controllers/Playlist.php new file mode 100644 index 0000000..e69de29 diff --git a/ci/application/views/layout/header.php b/ci/application/views/layout/header.php index 62a0f96..ea61208 100644 --- a/ci/application/views/layout/header.php +++ b/ci/application/views/layout/header.php @@ -17,9 +17,12 @@ + +