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

(This post was last modified: 11-19-2021, 11:04 AM by captain-sensible. Edit Reason: forgot something )

yeah i've got it working for blog postings - basically using output from database and links in view , whaterver blog is posted its possible to download a pdf of it.

i can't show you live since waiting for daughter to come up with one. I'll have a look maybe over week end at mpdf .

if its not considered shameless promotion of my CMS by mods you can download :
https://sourceforge.net/projects/codeigniter4cms/ unzip go into controllers

Code:
and look at  ProducePDF.php  in controllers.

look at app/Config/Autoload.php to see how i make sure class  can be found by system .


look at blogArticle.php  in vews to see how i dynamically list link to produce pdf

look at routes  , particularly :   $routes->get('linkPdf/(:segment)','ProducePDF::getPdf/$1');

if you want the thing to run, go into route of unzip and run from cli (depending on how you have composer set up , better still if your on linux ) : composer install


thats because to cut down on download i didn't upload vendor.


that should give you a clue of basics how i did it
CMS CI4     I use Arch Linux by the way 

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 ferb - 11-18-2021, 02:22 PM
RE: mpdf class not fount error CI 4.1.5 - by captain-sensible - 11-19-2021, 11:03 AM
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