/** * retornar reporte en formato xls * POST historico/listarprovision * * @return json */ public function postListarprovision() { $telefono = Input::get('telefonoCliente'); //getRegistroAtis try { $reporte = Historico::getRegistroAtis("fono", $telefono); } catch (Exception $exc) { $this->_errorController->saveError($exc); return array('rst' => 0, 'datos' => 'Error'); } if (count($reporte) > 0 && is_array($reporte)) { $rst = 1; } else { $rst = 0; } return Response::json(array('rst' => $rst, 'datos' => $reporte)); }