Merge branch 'feature/swvMaaktSopSchool' into develop

This commit is contained in:
Monique
2022-11-02 15:46:04 +01:00
3 changed files with 11 additions and 6 deletions
@@ -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);
}
+6 -5
View File
@@ -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);
//
}