Class 'Fpdf' not found - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Class 'Fpdf' not found (/showthread.php?tid=49618) |
Class 'Fpdf' not found - El Forum - 02-27-2012 [eluser]phparif[/eluser] I create a class, that is in application/library/Fpdf.php . Now i want to extend "Fpdf" class ,i use the code: class PdfTemplate extends Fpdf{ function __construct($orientation = 'P', $unit = 'mm', $size = 'A4') { parent::__construct($orientation, $unit, $size); } } PdfTemplate.php file is also same folder( application/library/PdfTemplate.php). But it generate an error like Fatal error: Class 'Fpdf' not found in C:\wamp\www\OnlineRegistrationSystem\application\libraries\PdfTemplate.php Now how can i do this. Class 'Fpdf' not found - El Forum - 02-27-2012 [eluser]Mauricio de Abreu Antunes[/eluser] You need to include your file. PHP is not like Java or .NET. :-) Code: include 'file_name.php'; Class 'Fpdf' not found - El Forum - 02-28-2012 [eluser]phparif[/eluser] Thanks....... |