-
-
Notifications
You must be signed in to change notification settings - Fork 959
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
How to solved this ? #158
Comments
This happens because you are namespacing the wrong PDF class.
use Barryvdh\DomPDF\Facade as PDF;
use PDF; |
Indeed, use the Facade. |
Closed
Non-static method Barryvdh\DomPDF\PDF::loadView() should not be called statically?..Help me out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Non-static method Barryvdh\DomPDF\PDF::loadView() should not be called statically, assuming $this from incompatible context
$pdf=PDF::loadView('adm-sales.pdf',array('send'=>$sendpdf))->setPaper('A4');
return $pdf->download('send order.pdf');
The text was updated successfully, but these errors were encountered: