How can I pass variables from my index.php file to MyReport.php and ultimately MyReport.view.php to display in the view? Here's my code:
index.php
<?php
require "MyReport.php";
$billID = $_GET['billID'];
$pdf = new MyReport;
$pdf->export()
->settings(array(
"useLocalTempFolder"=>true,
))
->pdf(array(
"format"=>"A4",
"orientation"=>"portrait"
))->toBrowser("MyReport.pdf");
How can I pass the $billID variable to MyReport.php and use/display it in MyReport.view.php?