+ 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); } }

10th Jan 2019, 5:25 PM
Arne Van Kerckvoorde
Arne Van Kerckvoorde - avatar
1 Answer
0
What language is this ? Can you put the language you use in the tags ?
10th Jan 2019, 8:30 PM
sneeze
sneeze - avatar