View Artist 8/?
This commit is contained in:
		@@ -3,18 +3,18 @@ defined('BASEPATH') OR exit('No direct script access allowed');
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class Artistes extends CI_Controller {
 | 
					class Artistes extends CI_Controller {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public function __construct(){
 | 
						public function __construct(){
 | 
				
			||||||
                parent::__construct();
 | 
								parent::__construct();
 | 
				
			||||||
                $this->load->model('model_music');
 | 
								$this->load->model('model_music');
 | 
				
			||||||
        }
 | 
						}
 | 
				
			||||||
        public function index(){
 | 
						public function index(){
 | 
				
			||||||
                $genre = $this->input->get('genre');
 | 
								$genre = $this->input->get('genre');
 | 
				
			||||||
                $order = $this->input->get('order');
 | 
								$order = $this->input->get('order');
 | 
				
			||||||
                $artists = $this->model_music->getArtists($genre, $order);
 | 
								$artists = $this->model_music->getArtists($genre, $order);
 | 
				
			||||||
                $genres = $this->model_music->researchtype();
 | 
								$genres = $this->model_music->researchtype();
 | 
				
			||||||
                $this->load->view('layout/header',['genres'=>$genres]);
 | 
								$this->load->view('layout/header',['genres'=>$genres]);
 | 
				
			||||||
                $this->load->view('artists_name',['artists'=>$artists]);
 | 
								$this->load->view('artists_name',['artists'=>$artists]);
 | 
				
			||||||
                $this->load->view('layout/footer');
 | 
								$this->load->view('layout/footer');
 | 
				
			||||||
        }
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -21,7 +21,7 @@
 | 
				
			|||||||
        <ul>
 | 
					        <ul>
 | 
				
			||||||
            <li><?= anchor('albums', 'Albums'); ?></li>
 | 
					            <li><?= anchor('albums', 'Albums'); ?></li>
 | 
				
			||||||
            <li><?= anchor('artistes', 'Artistes'); ?></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): ?>
 | 
					            <?php if (isset($is_logged_in) && $is_logged_in): ?>
 | 
				
			||||||
                <li><?= anchor('playlist', 'Playlist'); ?></li>
 | 
					                <li><?= anchor('playlist', 'Playlist'); ?></li>
 | 
				
			||||||
                <li><?= anchor('connect/logout', 'Déconnexion'); ?></li>
 | 
					                <li><?= anchor('connect/logout', 'Déconnexion'); ?></li>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user