CodeIgniter Forums
Loader question - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Loader question (/thread-10450.html)



Loader question - El Forum - 07-31-2008

[eluser]Carl_A[/eluser]
I just installed FreakAuth_light, and i was getting the following error, which i posted Here

I fixed that by moving the function to load the library
Code:
$this->load->library('FAL_validation', 'fal_validation');
into the constructor of the class.

Now I see that all classes that load libraries within other functions (not the constructor) are causing the same error.

Can libraries not be loaded outside the constructor?

If they can, is it something to do with some settings? I even tried it on my older project, i get the same error if I dont load libraries within the constructor itself..


Loader question - El Forum - 07-31-2008

[eluser]Yash[/eluser]
[quote author="Carl_A" date="1217537567"]
Can libraries not be loaded outside the constructor?
[/quote]

Yes they can
Quote:If they can, is it something to do with some settings? I even tried it on my older project, i get the same error if I dont load libraries within the constructor itself.

Just read more about this Auth Lib. There is one more Auth Lib try that...

or design your always..Like I did


Loader question - El Forum - 07-31-2008

[eluser]Carl_A[/eluser]
im trying redux auth now..

i wanted to find an already made library simply because there are security issues, which im afraid im not very experienced with.. so why re-invent the wheel? Tongue