Created
October 31, 2014 23:51
-
-
Save linares82/b815b825c7768a66d804 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Great project, i really apreciate if could you tell me how detect an exception, because when i execute a report without resul, it sends a message of error, and if i use an instruction try..catch just skip the process for the exception, but i want to send a message when it happens. | |
| try{ | |
| JasperPHP::process( | |
| base_path() . '/public/reportes/pendientes.jasper', | |
| base_path() . '/public/reportes/'.Sentry::getUser()->id.'/', | |
| array("pdf"), | |
| array('ruta_img'=>$ruta_img, | |
| 'cia_f1'=>$input['cia_f1'], 'cia_t1'=>$input['cia_t1'], | |
| 'area_f1'=>$input['area_f1'], 'area_t1'=>$input['area_t1'], | |
| 'tpo_pendiente_f1'=>$input['tpo_pendiente_f1'], 'tpo_pendiente_t1'=>$input['tpo_pendiente_t1'], | |
| 'estatus_f1'=>$input['estatus_f1'], 'estatus_t1'=>$input['estatus_t1']), | |
| Config::get('database.connections.mysql') | |
| ) | |
| ->execute(); | |
| sleep(20); | |
| return Redirect::route('rpts.pendientes')->withInput(); | |
| } catch (Exception $e) { | |
| echo 'Excepción capturada: ', $e->getMessage(), "\n"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment