I'm trying to include fpdf and fpdi via installing setasign/fpdi-fpdf
through composer but I can't seem to get fpdf or fpdi loaded. The error I get is Class 'setasign\fpdf\FPDF' not found
.
use \setasign\fpdf\FPDF as FPDF;
//inside controller function
fpdf::AddPage();
fpdf::SetFont('Courier', 'B', 18);
fpdf::Cell(50, 25, 'Hello World!');
fpdf::Output();
Maybe I should be adding something to the config/app.php
file in order to load the classes?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2zaup92
via IFTTT
Aucun commentaire:
Enregistrer un commentaire