<?php // require the autoload file require_once '../vendor/autoload.php'; //require the classes and initialize the objects use app\controllers\managers; use app\controllers\supervisors; use app\controllers\technician; $man = new managers(); $sup = new supervisors(); $techie = new technician(); if (isset($_GET['id'])) { $sid = $_GET['id']; // } $supervisor_details = $sup->getSupDetailsById($sid); $techDetails = $sup->view_details_supervisor($sid); //die(print_r($techDetails)); //die(var_dump($supervisor_details)); $pdf = new FPDF("P"); $pdf->Open(); $pdf->AddPage(); $pdf->Image('../assets/images/logo.png', 10, 8, 80); $pdf->Ln(); $pdf->SetFont('times', 'BU', 12); $pdf->setTextColor(05, 05, 05); $pdf->Cell(45); $pdf->Cell(30, 20, ' SUPERVISOR DETAILED REPORT ', 0, "C"); $pdf->Ln(); $pdf->SetFont('times', '', 10); $pdf->setTextColor(05, 05, 05);