affichage album

This commit is contained in:
2024-05-22 11:25:48 +02:00
parent a4cdb50094
commit 063d628c99
3 changed files with 6 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| a PHP script and you can easily do that on your own.
|
*/
$config['base_url'] = '';
$config['base_url']='/~felix-vi/SAE_PHP_2024_test/CodeIgniter-3.1.13/';
/*
|--------------------------------------------------------------------------

View File

@@ -76,9 +76,9 @@ $query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => '',
'password' => '',
'database' => '',
'username' => 'felix-vi',
'password' => 'felix-vi',
'database' => 'felix-vi',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,

View File

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