<?php
    require "../../model/model_horario.php";
    $MU = new Modelo_Horario();//Instaciamos
    $consulta = $MU->Listar_Horario();
    if($consulta){
        echo json_encode($consulta);
    }else{
        echo '{
            "sEcho": 1,
            "iTotalRecords": "0",
            "iTotalDisplayRecords": "0",
            "aaData": []
        }';
    }

?>   