View Artist 4/?
This commit is contained in:
		@@ -12,19 +12,9 @@ class Artist extends CI_Controller {
 | 
			
		||||
                $order = $this->input->get('order');
 | 
			
		||||
                $artists = $this->model_music->getArtists($genre, $order);
 | 
			
		||||
                $genres = $this->model_music->researchtype();
 | 
			
		||||
		$is_logged_in = $this->session->userdata('logged_in');
 | 
			
		||||
	
 | 
			
		||||
		$data = array(
 | 
			
		||||
			'artists' => $artists,
 | 
			
		||||
			'genres' => $genres,
 | 
			
		||||
			'is_logged_in' => $is_logged_in
 | 
			
		||||
		);
 | 
			
		||||
	
 | 
			
		||||
		$this->load->view('layout/header', $data);
 | 
			
		||||
		$this->load->view('artistes_list', $data);
 | 
			
		||||
                $this->load->view('layout/header',['genres'=>$genres]);
 | 
			
		||||
                $this->load->view('artists_name',['artists'=>$artists]);
 | 
			
		||||
                $this->load->view('layout/footer');
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,13 +0,0 @@
 | 
			
		||||
<h5>Artists List</h5>
 | 
			
		||||
<section class="list">
 | 
			
		||||
 | 
			
		||||
<?php
 | 
			
		||||
foreach($artists as $artist){
 | 
			
		||||
	echo "<div><article>";
 | 
			
		||||
	echo "<header class='short-text'>";
 | 
			
		||||
	echo anchor("artistes/view/{$artistes->artistId}","{$artist->artistName}");
 | 
			
		||||
	echo "</header>";
 | 
			
		||||
	echo "</article></div>";
 | 
			
		||||
}
 | 
			
		||||
?>
 | 
			
		||||
</section>
 | 
			
		||||
							
								
								
									
										11
									
								
								application/views/artistes_name.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								application/views/artistes_name.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
<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>";
 | 
			
		||||
}
 | 
			
		||||
?>
 | 
			
		||||
</section>
 | 
			
		||||
		Reference in New Issue
	
	Block a user