public function AviableByHotel($hotel_id, $start, $end, $count)
 {
     $a = new Aviable();
     echo json_encode($a->AviableByHotel($hotel_id, $start, $end, $count));
     //echo json_encode($a->AviableByCityId($hotel_id,$start,$end,$count));
     // or render View
 }
Example #2
0
function AvialByHotel($hotel_id, $start, $end, $count)
{
    $avi = new Aviable();
    return json_encode($avi->AviableByHotel($hotel_id, $start, $end, $count));
}