Skip to content

Commit

Permalink
Merge pull request #7 from jamiehannaford/patch-1
Browse files Browse the repository at this point in the history
Added an example to help out users to set variables
  • Loading branch information
raykolbe committed Apr 25, 2013
2 parents 9179dc5 + e7c9fa5 commit e234ac3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ class ReportController extends AbstractActionController
$pdf->setOption('filename', 'monthly-report'); // Triggers PDF download, automatically appends ".pdf"
$pdf->setOption('paperSize', 'a4'); // Defaults to "8x11"
$pdf->setOption('paperOrientation', 'landscape'); // Defaults to "portrait"


// To set view variables
$pdf->setVariables(array(
'message' => 'Hello'
));

return $pdf;
}
}
Expand Down

0 comments on commit e234ac3

Please sign in to comment.