Merge branch 'feature/swvMaaktSopSchool' into develop
This commit is contained in:
@@ -153,8 +153,8 @@ class Compactsop extends MY_Controller{
|
||||
$schoolID = $orgid;
|
||||
$html = (new Compactepaginas($compacteonderdelen, $paginas))->getHtml();
|
||||
$padnaam = $schoolID . $schooljaarnr;
|
||||
file_put_contents(MYROOTPATH.'public/tmp/temp'.$schoolID.$schooljaarnr.'.html', $html);
|
||||
|
||||
file_put_contents(MYROOTPATH.'public/tmp/temp'.$schoolID.$schooljaarnr.'.html', $html);
|
||||
|
||||
echo json_encode($padnaam);
|
||||
}
|
||||
|
||||
@@ -84,14 +84,15 @@ class Pdfmaker extends MY_Controller{
|
||||
file_put_contents($downloadnaam, $pdf);
|
||||
chmod($downloadnaam, 0777);
|
||||
|
||||
header( 'Content-Description: File Transfer' );
|
||||
|
||||
|
||||
// header( 'Content-Description: File Transfer' );
|
||||
header( 'Content-Type: application/pdf' );
|
||||
header( 'Content-disposition:inline; filename="' .$bestandsnaam.'"');
|
||||
header( 'Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0' );
|
||||
header( 'Pragma: public' );
|
||||
header( 'Content-Length: ' . filesize( $downloadnaam ) );
|
||||
// header( 'Cache-Control: no-cache, must-revalidate, post-check=0, pre-check=0' );
|
||||
// header( 'Pragma: public' );
|
||||
// header( 'Content-Length: ' . filesize( $downloadnaam ) );
|
||||
readfile($downloadnaam);
|
||||
//
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -458,6 +458,10 @@ mh.initCompactSopModel = function(){
|
||||
self.toonOnderdelen(true);
|
||||
});
|
||||
}
|
||||
else{
|
||||
apprise("geen instrumenten voor het compact sop gevonden.")
|
||||
}
|
||||
|
||||
},'json');
|
||||
} // else
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user