From 3d781e9fddabf1f35b5703d8887361d931c6585d Mon Sep 17 00:00:00 2001
From: Vince <vi.teissier@gmail.com>
Date: Tue, 4 Jun 2024 17:29:01 +0200
Subject: [PATCH]  View Artist 8/?

---
 application/controllers/Artistes.php | 26 +++++++++++++-------------
 application/views/layout/header.php  |  2 +-
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/application/controllers/Artistes.php b/application/controllers/Artistes.php
index 6919fb8..3d1f8a8 100644
--- a/application/controllers/Artistes.php
+++ b/application/controllers/Artistes.php
@@ -3,18 +3,18 @@ defined('BASEPATH') OR exit('No direct script access allowed');
 
 class Artistes extends CI_Controller {
 
-        public function __construct(){
-                parent::__construct();
-                $this->load->model('model_music');
-        }
-        public function index(){
-                $genre = $this->input->get('genre');
-                $order = $this->input->get('order');
-                $artists = $this->model_music->getArtists($genre, $order);
-                $genres = $this->model_music->researchtype();
-                $this->load->view('layout/header',['genres'=>$genres]);
-                $this->load->view('artists_name',['artists'=>$artists]);
-                $this->load->view('layout/footer');
-        }
+	public function __construct(){
+			parent::__construct();
+			$this->load->model('model_music');
+	}
+	public function index(){
+			$genre = $this->input->get('genre');
+			$order = $this->input->get('order');
+			$artists = $this->model_music->getArtists($genre, $order);
+			$genres = $this->model_music->researchtype();
+			$this->load->view('layout/header',['genres'=>$genres]);
+			$this->load->view('artists_name',['artists'=>$artists]);
+			$this->load->view('layout/footer');
+	}
 
 }
\ No newline at end of file
diff --git a/application/views/layout/header.php b/application/views/layout/header.php
index 9bba303..ae72dab 100644
--- a/application/views/layout/header.php
+++ b/application/views/layout/header.php
@@ -21,7 +21,7 @@
         <ul>
             <li><?= anchor('albums', 'Albums'); ?></li>
             <li><?= anchor('artistes', 'Artistes'); ?></li>
-            <li><?= anchor('musiques_name', 'Music'); ?></li>
+            <li><?= anchor('music', 'Music'); ?></li>
             <?php if (isset($is_logged_in) && $is_logged_in): ?>
                 <li><?= anchor('playlist', 'Playlist'); ?></li>
                 <li><?= anchor('connect/logout', 'Déconnexion'); ?></li>