PHP code example of mesd / jasper-report-viewer-bundle
1. Go to this page and download the library: Download mesd/jasper-report-viewer-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mesd / jasper-report-viewer-bundle example snippets
public function registerBundles() {
$bundles = array(
...
new Mesd\Jasper\ReportViewerBundle\MesdJasperReportViewerBundle(),
)
}
public function indexAction( Request $request ) {
$sc = $this->get('security.context');
if ( $sc->isGranted('ROLE_REPORT') ) {
return $this->redirect($this->generateUrl('MesdJasperReportViewerBundle_home'));
}
}
public function indexAction( Request $request ) {
$sc = $this->get('security.context');
if ( $sc->isGranted('ROLE_REPORT') ) {
return $this->redirect(
$this->generateUrl(
'MesdJasperReportViewerBundle_home',
array( 'openInNewTab' => true )
)
);
}