View Artist
This commit is contained in:
		@@ -12,10 +12,17 @@ class Artist extends CI_Controller {
 | 
			
		||||
		$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');	
 | 
			
		||||
	
 | 
			
		||||
		$data = array(
 | 
			
		||||
			'artists' => $artists,
 | 
			
		||||
			'genres' => $genres
 | 
			
		||||
		);
 | 
			
		||||
	
 | 
			
		||||
		$this->load->view('layout/header', $data);
 | 
			
		||||
		$this->load->view('artists_list', $data);
 | 
			
		||||
		$this->load->view('layout/footer');
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,12 +1,13 @@
 | 
			
		||||
<h5>Artists list</h5>
 | 
			
		||||
<h5>Artists List</h5>
 | 
			
		||||
<section class="list">
 | 
			
		||||
 | 
			
		||||
<?php
 | 
			
		||||
foreach($artists as $artist){
 | 
			
		||||
	echo "<div><article>";
 | 
			
		||||
	echo "<header class='short-text'>";
 | 
			
		||||
	echo anchor("artist/view/{$artist->artistId}","{$artist->artistName}");
 | 
			
		||||
	echo "</header></article></div>";
 | 
			
		||||
	echo "</header>";
 | 
			
		||||
	echo "</article></div>";
 | 
			
		||||
}
 | 
			
		||||
?>
 | 
			
		||||
</section>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user