View Artist 2/?
This commit is contained in:
		
							
								
								
									
										28
									
								
								application/controllers/Artistes.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								application/controllers/Artistes.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
			
		||||
<?php
 | 
			
		||||
defined('BASEPATH') OR exit('No direct script access allowed');
 | 
			
		||||
 | 
			
		||||
class Artist 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();
 | 
			
		||||
	
 | 
			
		||||
		$data = array(
 | 
			
		||||
			'artists' => $artists,
 | 
			
		||||
			'genres' => $genres
 | 
			
		||||
		);
 | 
			
		||||
	
 | 
			
		||||
		$this->load->view('layout/header', $data);
 | 
			
		||||
		$this->load->view('artists_list', $data);
 | 
			
		||||
		$this->load->view('layout/footer');
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user