Class not found trying to integrate TCPDF |
Following the instructions here: https://forum.codeigniter.com/thread-754...#pid377974
I setup TCPDF, but upon running I am getting an error. As best I can tell I followed the instructions exactly (except for a slight name change). What am I missing? Unzipped the file downloaded from GitHub into App/ThirdParty/TCPDF Added a file (SBPdf.php) into App/Libraries: PHP Code: <?php Then in my controller I call it: PHP Code: public function testpdf() At that point I was getting an error: 'Class "App\Controllers\Admin\SBPdf" not found' I then added this to my controller (app/Controllers/Admin/Services.php), which got me closer, I think: PHP Code: use App\Libraries\SBPdf; But this produces an error of: 'Class "App\ThirdParty\TCPDF\Tcpdf" not found' error. Feel like I am missing something obvious as others have said it just works, so... Help! |
Messages In This Thread |
Class not found trying to integrate TCPDF - by SoccerGuy3 - 09-01-2021, 03:41 PM
RE: Class not found trying to integrate TCPDF - by InsiteFX - 09-02-2021, 04:34 AM
RE: Class not found trying to integrate TCPDF - by SoccerGuy3 - 09-02-2021, 07:18 AM
RE: Class not found trying to integrate TCPDF - by iRedds - 09-02-2021, 11:06 AM
RE: Class not found trying to integrate TCPDF - by SoccerGuy3 - 09-02-2021, 11:12 AM
RE: Class not found trying to integrate TCPDF - by getsamplecode - 11-25-2024, 09:01 PM
|