Closed raimon-segura closed 2 years ago
Hi!,
Just a solution for "Headers already sent" issue with Yii2 framework, it only needs an exit just after the "echo":
header("Content-type:application/pdf"); header("Content-Disposition:attachment;filename=$pdf_filename"); echo $obj->to_pdf_file_s(true); exit();
Hi!,
Just a solution for "Headers already sent" issue with Yii2 framework, it only needs an exit just after the "echo":
header("Content-type:application/pdf"); header("Content-Disposition:attachment;filename=$pdf_filename"); echo $obj->to_pdf_file_s(true); exit();