Skip to content

Commit

Permalink
fix view vars
Browse files Browse the repository at this point in the history
View variables are missing in template file without this line.
  • Loading branch information
chipco committed Jan 31, 2016
1 parent 9d5c99b commit 3e37f5b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ Example:
<?php
$CakePdf = new \CakePdf\Pdf\CakePdf();
$CakePdf->template('newsletter', 'default');
$CakePdf->viewVars($this->viewVars);
// Get the PDF string returned
$pdf = $CakePdf->output();
// Or write it to file directly
Expand Down

0 comments on commit 3e37f5b

Please sign in to comment.