[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.