Welcome Guest, Not a member yet? Register   Sign In
load library
#1

[eluser]Mitja B.[/eluser]
I have folder html2fpdf and fil html2fpdf.pdf inside. How can i load library now.

$this->load->library('html2fpdf/html2fpdf');

this not working

Thx
#2

[eluser]Zeeshan Rasool[/eluser]
Well you w'll have to check this code,

$this->load->html2fpdf(’html2fpdf’);

Hope it will work.
#3

[eluser]Mitja B.[/eluser]
it must be inside html2fpdf directory becouse then pdf convertor not working

it is not possible to load library inside directory?
#4

[eluser]Zeeshan Rasool[/eluser]
But you can move ’html2fpdf’file to the folder where from you r loading other files mean in library folder
#5

[eluser]Mitja B.[/eluser]
if i do this then i must change other 20 files
#6

[eluser]Scriptor[/eluser]
First, why is your library file a PDF file? Are you sure it's a PHP library for Codeigniter?
Try
Code:
$this->load->library(’html2fpdf/html2fpdf.pdf’);
If that doesn't work then change the library file's extension to .php and use your original code for loading the library.




Theme © iAndrew 2016 - Forum software by © MyBB