deuxieme essai deco
This commit is contained in:
parent
8e760c0dc6
commit
6a5b039232
application
@ -15,7 +15,7 @@ class Albums extends CI_Controller {
|
||||
'albums' => $albums,
|
||||
'is_logged_in' => $is_logged_in
|
||||
);
|
||||
$this->load->view('layout/header',$is_logged_in);
|
||||
$this->load->view('layout/header',$data);
|
||||
$this->load->view('albums_list', $data);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
|
@ -21,10 +21,8 @@
|
||||
<li><?= anchor('artistes', 'Artistes'); ?></li>
|
||||
<li><?= anchor('playlist', 'Playlist'); ?></li>
|
||||
<?php if (isset($is_logged_in) && $is_logged_in): ?>
|
||||
<h1>Connecté</h1>
|
||||
<li><?= anchor('connect/logout', 'Déconnexion'); ?></li>
|
||||
<?php else: ?>
|
||||
<h1>Non connecté</h1>
|
||||
<li><?= anchor('connect/login', 'Connexion'); ?></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user