+ 5
Trying to pass variables in class FPDF
if($_GET['style'] == 'CompanyOne') { $R = 231; $G = 65; $B = 17; $logo = 'img/CVO.jpg'; } class PDF extends FPDF { function Footer($R, $G, $B) <--- trying to pass variables from if statement to function inside class { // Go to 1.5 cm from bottom $this->SetY(-10 ); // Select Arial italic 8 $this->setFillColor($R,$G,$B); $this->SetFont('Arial','I',8); // Print centered page numbe $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C',1); } }
1 Answer
0
What language is this ?
Can you put the language you use in the tags ?