mirror of
https://grond.iut-fbleau.fr/stiti/SAE_2.02
synced 2024-11-10 05:11:42 +01:00
34 lines
875 B
PHP
34 lines
875 B
PHP
<?php
|
|
class Home extends CI_Controller {
|
|
|
|
public function index() {
|
|
|
|
|
|
|
|
// Charger le modèle
|
|
$this->load->model('Cover_model');
|
|
|
|
$this->load->helper('url');
|
|
|
|
$this->load->helper('html');
|
|
|
|
// Appeler la fonction pour récupérer les couvertures d'albums
|
|
$data['covers'] = $this->Cover_model->get_covers();
|
|
|
|
// Charger la vue avec les données récupérées
|
|
|
|
include 'temporaire.php';
|
|
if($logged == true){
|
|
$this->load->view('layout/header_dark');
|
|
$this->load->view('layout/header_logged_dark');
|
|
$this->load->view('accueil', $data);
|
|
$this->load->view('layout/footer_dark');
|
|
} else {
|
|
$this->load->view('layout/header_dark');
|
|
$this->load->view('layout/header_not_logged_dark');
|
|
$this->load->view('accueil', $data);
|
|
$this->load->view('layout/footer_dark');
|
|
}
|
|
}
|
|
}
|
|
?>
|