<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Music 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');
		$musics = $this->model_music->getMusics($genre, $order);
		$genres = $this->model_music->researchtype();
		$this->load->view('layout/header',['genres'=>$genres]);
		$this->load->view('musiques_name',['musics'=>$musics]);
		$this->load->view('layout/footer');	
	}

}