View Artist 3/?
This commit is contained in:
parent
f69295e33b
commit
a5e3920fb0
application
@ -12,14 +12,16 @@ 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();
|
||||||
|
$is_logged_in = $this->session->userdata('logged_in');
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
'artists' => $artists,
|
'artists' => $artists,
|
||||||
'genres' => $genres
|
'genres' => $genres,
|
||||||
|
'is_logged_in' => $is_logged_in
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->load->view('layout/header', $data);
|
$this->load->view('layout/header', $data);
|
||||||
$this->load->view('artists_list', $data);
|
$this->load->view('artistes_list', $data);
|
||||||
$this->load->view('layout/footer');
|
$this->load->view('layout/footer');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
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("artistes/view/{$artistes->artistId}","{$artist->artistName}");
|
||||||
echo "</header>";
|
echo "</header>";
|
||||||
echo "</article></div>";
|
echo "</article></div>";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user