Welcome Guest, Not a member yet? Register   Sign In
Auto load Library before all Controllers
#5

[eluser]Rick Jolly[/eluser]
I think xwero means that you shouldn't load files only within your custom library if they are used in other parts of your application. You haven't done that, so you're ok.

I agree that you should load all files necessary within custom libraries regardless if they are loaded elsewhere. It doesn't hurt, since the CI loader will never load a file more than once. It prevents problems when someone removes a file from the autoload array.

For the record, I don't use autoload for that reason and because it isn't transparent: you can't look through the code to see which files are being loaded.


Messages In This Thread
Auto load Library before all Controllers - by El Forum - 12-03-2008, 10:48 PM
Auto load Library before all Controllers - by El Forum - 12-03-2008, 11:21 PM
Auto load Library before all Controllers - by El Forum - 12-04-2008, 12:46 AM
Auto load Library before all Controllers - by El Forum - 12-04-2008, 09:01 AM
Auto load Library before all Controllers - by El Forum - 12-04-2008, 12:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB