Welcome Guest, Not a member yet? Register   Sign In
CI and fpdf/fpdi
#1

[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');
$this->load->library('fpdi');

//now do something with them
$this->fpdi->AddPage();
$this->fpdi->Output();

My question is how to make multiple instances? Outside of CI i would do it like this

Code:
$pdf1 = new fpdi();


$pdf2 = new fpdi();

Do I need make two seperate models? or what?

Thanks in advance.

P


Messages In This Thread
CI and fpdf/fpdi - by El Forum - 03-31-2010, 06:51 AM
CI and fpdf/fpdi - by El Forum - 03-31-2010, 07:37 AM
CI and fpdf/fpdi - by El Forum - 01-29-2012, 11:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB