Welcome Guest, Not a member yet? Register   Sign In
mpdf class not fount error CI 4.1.5
#2

if what your trying to do is so surfers can download a pdf version of your web page , then i can tell you i have had success with : https://packagist.org/packages/tecnickcom/tcpdf


Now i installed that via entry in composer.json file but it didn't work

Now in that particular case, the tcpdf.php main file had no namespace , so i had to load it in app/Config/Autoload.php using :

Code:
public $classmap = [  'TCPDF'=>ROOTPATH.'tecnickcom/tcpdf/tcpdf.php'
   ];


if mpdf files have a namespace then you can try running :

Code:
composer dump-autoload


have a look inside class files to see if they have a namespace or not.
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply


Messages In This Thread
mpdf class not fount error CI 4.1.5 - by ferb - 11-18-2021, 11:07 AM
RE: mpdf class not fount error CI 4.1.5 - by captain-sensible - 11-18-2021, 01:39 PM
RE: mpdf class not fount error CI 4.1.5 - by ferb - 11-18-2021, 02:22 PM
RE: mpdf class not fount error CI 4.1.5 - by ferb - 11-19-2021, 01:00 PM
RE: mpdf class not fount error CI 4.1.5 - by ferb - 11-21-2021, 05:13 PM
RE: mpdf class not fount error CI 4.1.5 - by ferb - 11-22-2021, 11:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB