Hello I am using export package to print reports dynamically - How do I pass parameters to the export file How do I pass id to the filename?
$strFileName = 'myReport.php';
$id = $_POST['id']
require_once("/koolreport/autoload.php");
use \koolreport\instant\Exporter;
Exporter::export($strFileName)
->pdf(array(
"format"=>"A4",
"orientation"=>"portrait"
)) ->toBrowser("out.pdf",true);