public function postCargarentregas() { if (Request::ajax()) { $array = array(); $array['where'] = ''; $array['usuario'] = Auth::user()->id; $array['limit'] = ''; $array['order'] = ' ORDER BY ef.orden '; if (Input::has("id")) { $array['where'] .= " AND ef.escalafon_id='" . Input::get("id") . "' "; } $r = EscalafonFichas::getCargarEntregas($array); return Response::json(array('rst' => 1, 'datos' => $r)); } }