2024-05-18 14:52:46 +02:00
|
|
|
<?php
|
|
|
|
class Home extends CI_Controller {
|
2024-05-18 17:05:04 +02:00
|
|
|
|
|
|
|
public function index() {
|
|
|
|
// Charger le modèle
|
|
|
|
$this->load->model('Cover_model');
|
|
|
|
|
2024-05-19 15:57:25 +02:00
|
|
|
$this->load->helper('url');
|
|
|
|
|
2024-05-18 17:05:04 +02:00
|
|
|
// 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
|
2024-05-19 15:57:25 +02:00
|
|
|
$this->load->view('layout/header_not_logged_dark');
|
2024-05-18 17:05:04 +02:00
|
|
|
$this->load->view('accueil', $data);
|
2024-05-19 15:57:25 +02:00
|
|
|
$this->load->view('layout/footer_dark');
|
2024-05-18 17:05:04 +02:00
|
|
|
}
|
2024-05-18 14:52:46 +02:00
|
|
|
}
|
2024-05-18 17:05:04 +02:00
|
|
|
?>
|