CodeIgniter Forums

Full Version: TCPDF integrated with CI
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
You may need to run it through a foreach loop using the total count of users.
(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 ?
I would do it in the model then pass the data to your controller and view.
(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 ?  Undecided