Welcome Guest, Not a member yet? Register   Sign In
Need some help understanding Libraries and Config Files
#1

[eluser]dmorin[/eluser]
I have an authentication library that I built myself which is autoloaded and utilized by the application. I also have a config file, named exactly like the library, which stores settings used by the auth library.

Currently, I have the auth library config file autoloaded by CodeIgnitor and everything works exactly as it is supposed to. However, when I look at some logs, I can see that the config file is actually being loaded twice for each request. I can only assume it is happening once from the auto-load and once when the library is loaded. If I take the config file out of the auto-load, the app breaks as if it cannot reference the settings.

Hopefully that made sense...Can anyone help me understand how the loading of a config file by a library happens and how it is supposed to be used? The User Guide makes a brief reference to it, but it's not very clear. Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB