album(s) des artistes
This commit is contained in:
@@ -13,11 +13,5 @@ class Albums extends CI_Controller {
|
||||
$this->load->view('albums_list',['albums'=>$albums]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
public function view($album_id){
|
||||
$songs = $this->model_music->getSongOfAlbum($album_id);
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('song_album_list',['songs'=>$songs]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -13,5 +13,11 @@ class artistes extends CI_Controller {
|
||||
$this->load->view('artistes_list',['artistes'=>$artistes]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
public function view($AlbumsOfArtistId){
|
||||
$AlbumsOfArtist = $this->model_music->getAlbumsOfArtist($AlbumsOfArtistId);
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('albums_artist_list',['AlbumsOfArtist'=>$AlbumsOfArtist]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
|
||||
}
|
||||
17
ci/application/controllers/Song.php
Normal file
17
ci/application/controllers/Song.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Song extends CI_Controller {
|
||||
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
$this->load->model('model_music');
|
||||
}
|
||||
|
||||
public function view($album_id){
|
||||
$songs = $this->model_music->getSongOfAlbum($album_id);
|
||||
$this->load->view('layout/header');
|
||||
$this->load->view('song_album_list',['songs'=>$songs]);
|
||||
$this->load->view('layout/footer');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user