View Artist
This commit is contained in:
parent
fc66510cc6
commit
46ed6871a0
application
@ -12,10 +12,17 @@ class Artist extends CI_Controller {
|
|||||||
$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('artists_name',['artists'=>$artists]);
|
$data = array(
|
||||||
$this->load->view('layout/footer');
|
'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">
|
<section class="list">
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
foreach($artists as $artist){
|
foreach($artists as $artist){
|
||||||
echo "<div><article>";
|
echo "<div><article>";
|
||||||
echo "<header class='short-text'>";
|
echo "<header class='short-text'>";
|
||||||
echo anchor("artist/view/{$artist->artistId}","{$artist->artistName}");
|
echo anchor("artist/view/{$artist->artistId}","{$artist->artistName}");
|
||||||
echo "</header></article></div>";
|
echo "</header>";
|
||||||
|
echo "</article></div>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user