CI and fpdf/fpdi - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: CI and fpdf/fpdi (/showthread.php?tid=29149) |
CI and fpdf/fpdi - El Forum - 03-31-2010 [eluser]pendalpusher[/eluser] Yesterday I got Fpdf and Fpdi working within the CI framework. Currently to access the classes I am doing this. Code: $this->load->library('fpdf'); My question is how to make multiple instances? Outside of CI i would do it like this Code: $pdf1 = new fpdi(); Do I need make two seperate models? or what? Thanks in advance. P CI and fpdf/fpdi - El Forum - 03-31-2010 [eluser]rogierb[/eluser] The third parameter in load in loading a library is used to assign the class to a different name. It's in the userguide: Quote:Assigning a Library to a different object name CI and fpdf/fpdi - El Forum - 01-29-2012 [eluser]noviceCODER[/eluser] thanks |