From a0af043f684b1d45c71c02c982433df4c802b595 Mon Sep 17 00:00:00 2001 From: gallego Date: Tue, 28 May 2024 14:36:30 +0200 Subject: [PATCH] debut playlist --- ci/application/controllers/Chansons.php | 17 +++++++++++++++++ ci/application/controllers/Playlist.php | 0 ci/application/views/layout/header.php | 3 +++ 3 files changed, 20 insertions(+) create mode 100644 ci/application/controllers/Chansons.php create mode 100644 ci/application/controllers/Playlist.php 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 @@ + +