How to integrate TCPDF on CI4 as Library - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: How to integrate TCPDF on CI4 as Library (/showthread.php?tid=75715) |
How to integrate TCPDF on CI4 as Library - msjagan - 03-09-2020 I am trying to integrate TCPDF on CI4. while integrating, it throws What I have done so far is 1) Pasted tcpdf folder in library folder 2) Created "Tpdf.php" in library folder (code below) Code: <?php 3) I called TCPDF in "home controller" (code below) Code: <?php After that I am getting error as shown in attached image Please suggest the solution. RE: How to integrate TCPDF on CI4 as Library - includebeer - 03-09-2020 On the example page they say to include tcpdf_include.php: PHP Code: // Include the main TCPDF library (search for installation path). Also, it’s not what cause this error, but you declared a $tcpdf variable but you assign the new object to $tpdf. RE: How to integrate TCPDF on CI4 as Library - msjagan - 03-09-2020 I corrected the wrong like you mentioned and still it throws the same error RE: How to integrate TCPDF on CI4 as Library - luiscarlos - 06-11-2020 (03-09-2020, 11:32 PM)msjagan Wrote: I corrected the wrong like you mentioned and still it throws the same errorThe correct way to use the library was mentioned in https://forum.codeigniter.com/thread-75463.html RE: How to integrate TCPDF on CI4 as Library - kabata+ - 09-05-2020 I had such a problem with PHPSpreadsheet; such a problem was resolved when I used composer to download the library. Hope this can help you. RE: How to integrate TCPDF on CI4 as Library - paulbalandan - 09-05-2020 Use a backslash on TCPDF. class Tpdf extends \TCPDF { ... } |