20 lines
735 B
PHP
20 lines
735 B
PHP
<?php
|
|
defined('BASEPATH') OR exit('No direct script access allowed');
|
|
|
|
class Artistes extends CI_Controller {
|
|
|
|
public function __construct(){
|
|
parent::__construct();
|
|
$this->load->model('model_music');
|
|
}
|
|
public function index(){
|
|
$genre = $this->input->get('genre');
|
|
$order = $this->input->get('order');
|
|
$artists = $this->model_music->getArtists($genre, $order);
|
|
$genres = $this->model_music->researchtype();
|
|
$this->load->view('layout/header',['genres'=>$genres]);
|
|
$this->load->view('artists_name',['artists'=>$artists]);
|
|
$this->load->view('layout/footer');
|
|
}
|
|
|
|
} |