CodeIgniter Forums
problem with load library - 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: problem with load library (/showthread.php?tid=24699)

Pages: 1 2


problem with load library - El Forum - 11-17-2009

[eluser]674DBK[/eluser]
hi.. im newbie ci

i have problem to load my own library.

Unable to load the requested class: My_lib

Code:
$this->load->library('my_lib');

this file i locate at system-->application-->libraries


problem with load library - El Forum - 11-17-2009

[eluser]umefarooq[/eluser]
hi try capital M it will work which os you are using.

Code:
$this->load->library('My_lib');



problem with load library - El Forum - 11-17-2009

[eluser]674DBK[/eluser]
i already try capital M. also did not work

i using Ubuntu

someone.... please help me.....


problem with load library - El Forum - 11-17-2009

[eluser]Cro_Crx[/eluser]
Make sure that the class you have created is named correctly and is within the correct file

If you're read over that and still having problems. Let us know the filename of your library and give us a snippet of where your defining your class near the top.


problem with load library - El Forum - 11-17-2009

[eluser]674DBK[/eluser]
locate :
system/application/libraries/My_lib.php

controller :
$this->load->library('My_lib');


anyone.. help me...
:down:


problem with load library - El Forum - 11-18-2009

[eluser]674DBK[/eluser]
anyone???


problem with load library - El Forum - 11-18-2009

[eluser]Maglok[/eluser]
Can you post the constructor of your class? And the start basically.


problem with load library - El Forum - 11-18-2009

[eluser]674DBK[/eluser]
hi..

first, sorry for my poor english

actually, i tried to install Tank Auth login ..

and i got this problem.. cannot load library.. i follow all instruction provided by Tank Auth.

this issue could be my OS or php,apache setting..??? :roll:


problem with load library - El Forum - 11-18-2009

[eluser]umefarooq[/eluser]
its can be OS because you have to give proper file name i already faced this kind of problem while deployment of my two projects, my local server is windows but my remote server was Linux base it was giving me error on loading dx_auth library where the file name was DX_Auth.php, according to installation i did the same way by putting

Code:
this->load->library('dx_auth');

it works fine for windows but not working on Linux then i change it to

Code:
this->load->library('DX_Auth');
it works fine no problem at all.


problem with load library - El Forum - 11-18-2009

[eluser]674DBK[/eluser]
i already rename and correct that file..

locate :
system/application/libraries/My_lib.php

controller :
$this->load->library(‘My_lib’);

still got problem..

but when i m places in system/libraries/ . library can load and work fine. i have no idea.. why i cannot load from system/application/libraries/