We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9179dc5 + e7c9fa5 commit e234ac3Copy full SHA for e234ac3
README.md
@@ -54,7 +54,12 @@ class ReportController extends AbstractActionController
54
$pdf->setOption('filename', 'monthly-report'); // Triggers PDF download, automatically appends ".pdf"
55
$pdf->setOption('paperSize', 'a4'); // Defaults to "8x11"
56
$pdf->setOption('paperOrientation', 'landscape'); // Defaults to "portrait"
57
-
+
58
+ // To set view variables
59
+ $pdf->setVariables(array(
60
+ 'message' => 'Hello'
61
+ ));
62
63
return $pdf;
64
}
65
0 commit comments