-
-
Notifications
You must be signed in to change notification settings - Fork 965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't pass variables to template #15
Comments
I don't think this error is related to that by looking at https://github.com/barryvdh/laravel-dompdf/blob/master/src/Barryvdh/DomPDF/PDF.php#L140. |
Hmmm... it must be something in the $order, it's a bit messy but it passes the lint test though:
|
If you can't get it to work, you could pass |
Yep - I tried all of that. But just solved it - was because 'compact' was missing from the template call... so this works...
|
Well, |
Indeed. I prefer to use the longer array('order' => $order) syntax for clarity. |
Just to clarify , this means the $data parameter must be a associative array? |
Yeah it's just the same as a normal Laravel view.. |
netm bieeen ntm gracias :D |
Love this package, works great but for some reason I get an error when trying to pass to the template
In controller:
In the template:
And I get an error:
If I remove the {{$order->id}} from the template the PDF works perfectly. Any help much appreciated - I must have misunderstood something..again... :)
The text was updated successfully, but these errors were encountered: