Correction des chemins

This commit is contained in:
stiti
2024-05-20 16:31:29 +02:00
parent 03e1f43d2d
commit 85553ae9cb
7 changed files with 25 additions and 29 deletions

View File

@@ -6,11 +6,9 @@ class Albums extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->model('model_music');
// Load the URL Helper
$this->load->helper('url');
}
public function index(){
$page = 1;
public function index($page = 1){
$limit = 21;
$offset = ($page - 1) * $limit;
$albums = $this->model_music->getAlbums($limit, $offset);
@@ -24,7 +22,4 @@ class Albums extends CI_Controller {
$this->load->view('albums_list', $data);
$this->load->view('layout/footer_dark');
}
}

View File

@@ -15,6 +15,5 @@ public function index() {
$this->load->view('accueil', $data);
$this->load->view('layout/footer_dark');
}
}
?>