![]() |
CI4 Dynamic DOMPDF view , - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: CI4 Dynamic DOMPDF view , (/showthread.php?tid=82461) Pages:
1
2
|
RE: CI4 Dynamic DOMPDF view , - kenjis - 11-29-2023 I don't know how to upload to this forum. There is no upload form. RE: CI4 Dynamic DOMPDF view , - trunky - 12-21-2023 I've given it a try and my code (so this one from the post here) works fine if env is set to production. In development it indeed throws an error and write the content into the pdf instead of a valid file. RE: CI4 Dynamic DOMPDF view , - kenjis - 12-21-2023 What is the exact error message? RE: CI4 Dynamic DOMPDF view , - trunky - 12-27-2023 in development mode it generates a blank pdf (as it seems) and downloads it, but it's no valid pdf. If one opens it with a text editor instead it contains the CI error page As it is too much code for the forum, it is listed here: https://pastebin.com/dtWYdb5s In production mode the pdf file is valid and contains the correct data. RE: CI4 Dynamic DOMPDF view , - kenjis - 12-27-2023 The error message is: Quote:ErrorException and it was caused by Debug Toolbar. But I don't know why the error occurs. The controller has not yet executed. |