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

[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
#2

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

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

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

i using Ubuntu

someone.... please help me.....
#4

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

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

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


anyone.. help me...
:down:
#6

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

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

[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:
#9

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

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




Theme © iAndrew 2016 - Forum software by © MyBB