![]() |
TCPDF integrated with CI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Addins (https://forum.codeigniter.com/forumdisplay.php?fid=34) +--- Thread: TCPDF integrated with CI (/showthread.php?tid=74097) |
TCPDF integrated with CI - incognitorecon - 07-22-2019 Image: http://prntscr.com/oiaxrq The image i have provided is the "multiple" selected ID that i needed to generate as PDF . 2nd Image: http://prntscr.com/oiaylk The second image is that it show that the PDF look like. Problem: It only generate 1 PDF for me only , what i wanted is that when it can generate multiple PDF depending on how many user i have selected. RE: TCPDF integrated with CI - InsiteFX - 07-22-2019 You may need to run it through a foreach loop using the total count of users. RE: TCPDF integrated with CI - incognitorecon - 07-22-2019 (07-22-2019, 12:22 PM)InsiteFX Wrote: You may need to run it through a foreach loop using the total count of users. I wondered on which page i should do the foreach loop ? on the model or the view , or both ? RE: TCPDF integrated with CI - InsiteFX - 07-23-2019 I would do it in the model then pass the data to your controller and view. RE: TCPDF integrated with CI - incognitorecon - 07-24-2019 (07-23-2019, 03:01 PM)InsiteFX Wrote: I would do it in the model then pass the data to your controller and view. Hello , currently that i am able to get the data and pass it to my pdf view page. But in the pdf view page, it only show 1 pdf generated. I have tested if i put ORDER BY ASC , it will show the "FIRST" data, and if DSC it will show "LAST" data how do i make it able to generate 2 pdf ? ![]() |