v2021, I created custom file for printing in pdf format. Included common files disabled.
The URL is : /print/printpo.php?Purchase=3083/PO/TLI/X/2020
The parameter is taken from $_GET[‘Purchase’];
As sampled in help file it should be/print/printpo?Purchase=3083/PO/TLI/X/2020
But I get error page
404
Error
Route ‘print/printpo’ not found.
Also why is the file generated printpo.php blank? Only contents :
<? // No class file ?>
Please help. What is the correct route URL for it?
\views\Printpo.php(20): Class ‘PHPMaker2021\Tabu_ERP_2021\exFPDF’ not found
FYI I use FPDF modules for generating pdf page by adding the folder manually into the root folder.
In such case your class is not under the project namespace, “PHPMaker2021\Tabu_ERP_2021”.
If you class has a composer package, you should add the package by Tools → Composer Packages to your project instead of adding it manually.
Always to remember: since PHPMaker is now using namespace, you need to add black slash before the Class. If not, then it will be recognized as outside of the namespace.
If you class has a composer package, you should add the package by Tools →
Composer Packages to your project instead of adding it manually.
You should click Tools → Composer Packages to add the package
“matthew-elisha/fpdf-easytable” to your project, then you can remove:
Hi Arbei,
I tried it. But seems matthew-elisha/fpdf-easytable has no package version available. Then updating composer is always getting error. Meanwhile I dont find any other developer for easytable in composer. How to add / use package without using ‘composer’ in this v2021? because it was running smooth in previous version
I have updated successfully composer using mathew-elisha/fpdf-easytable dev-master
And added backslashes in my file $pdf = new \exFPDF(‘P’,‘mm’,‘A4’);Now error message: Fatal error: Class ‘FPDF’ not found in … vendor\matthew-elisha\fpdf-easytable\exfpdf.php on line 12Seems the package is good but now the problem is in the file of package which can not find the path.?
Here is line 12:
class exFPDF extends FPDF{please kindly help. Thanks