réglage de bugs + optimisation du code

This commit is contained in:
Marco ORFAO 2024-05-23 11:52:41 +02:00
parent e55821b0fe
commit deca6ccb93
9 changed files with 28 additions and 30 deletions

View File

@ -7,6 +7,7 @@ class Albums extends CI_Controller {
parent::__construct(); parent::__construct();
$this->load->model('model_music'); $this->load->model('model_music');
$this->load->helper('url'); $this->load->helper('url');
$this->load->helper('html');
} }
public function index($page = 1){ public function index($page = 1){

View File

@ -8,6 +8,7 @@ class Artiste extends CI_Controller {
$this->load->model('Model_artist'); $this->load->model('Model_artist');
$this->load->model('Model_music'); $this->load->model('Model_music');
$this->load->helper('url'); $this->load->helper('url');
$this->load->helper('html');
} }
public function index($artiste_id){ public function index($artiste_id){

View File

@ -7,6 +7,8 @@ public function index() {
$this->load->helper('url'); $this->load->helper('url');
$this->load->helper('html');
// Appeler la fonction pour récupérer les couvertures d'albums // Appeler la fonction pour récupérer les couvertures d'albums
$data['covers'] = $this->Cover_model->get_covers(); $data['covers'] = $this->Cover_model->get_covers();

View File

@ -6,6 +6,7 @@ class MentionsLegales extends CI_Controller {
public function __construct(){ public function __construct(){
parent::__construct(); parent::__construct();
$this->load->helper('url'); $this->load->helper('url');
$this->load->helper('html');
} }
public function index() public function index()

View File

@ -8,6 +8,7 @@ class Musiques extends CI_Controller {
$this->load->model('Model_music'); $this->load->model('Model_music');
$this->load->library('pagination'); $this->load->library('pagination');
$this->load->helper('url'); $this->load->helper('url');
$this->load->helper('html');
} }
public function index($page = 1){ public function index($page = 1){

View File

@ -7,6 +7,7 @@ class Search extends CI_Controller {
parent::__construct(); parent::__construct();
$this->load->model('Search_model'); $this->load->model('Search_model');
$this->load->helper('url'); $this->load->helper('url');
$this->load->helper('html');
} }
public function index(){ public function index(){

View File

@ -8,6 +8,7 @@ class Utilisateur extends CI_Controller {
$this->load->helper(array('form', 'url')); $this->load->helper(array('form', 'url'));
$this->load->library(array('form_validation', 'session')); $this->load->library(array('form_validation', 'session'));
$this->load->model('Utilisateur_model'); $this->load->model('Utilisateur_model');
$this->load->helper('html');
} }
public function inscription(){ public function inscription(){

View File

@ -1,11 +1,3 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?php echo base_url('assets/css/footer_dark'); ?>">
</head>
<body>
<footer class="footer"> <footer class="footer">
<div class="footer-content"> <div class="footer-content">
<div class="social-links"> <div class="social-links">
@ -23,5 +15,4 @@
</div> </div>
</div> </div>
</footer> </footer>
</body>
</html> </html>

View File

@ -3,15 +3,15 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?php echo base_url('assets/css/header_not_logged_dark'); ?>"> <?=link_tag('assets/css/header_not_logged_dark')?>
<link rel="icon" type="image/x-icon" href="<?php echo base_url('assets/img/Logo_ONZEUR.png'); ?>"> <?=link_tag('assets/img/Logo_ONZEUR.png')?>
<?=link_tag('assets/css/footer_dark.css')?>
</head> </head>
<body>
<header class="header"> <header class="header">
<div class="header-content"> <div class="header-content">
<div class="logo"> <div class="logo">
<a href="<?php echo site_url('home'); ?>"> <a href="<?php echo site_url('home'); ?>">
<img src="<?php echo base_url('assets/img/Logo_ONZEUR_DARK.png'); ?>" alt="Logo de ONZEUR"> <?=img('assets/img/Logo_ONZEUR_DARK.png');?>
</a> </a>
</div> </div>
<nav class="nav"> <nav class="nav">
@ -46,5 +46,4 @@
document.querySelector('.nav-buttons').classList.toggle('active'); document.querySelector('.nav-buttons').classList.toggle('active');
}); });
</script> </script>
</body>
</html> </html>