Welcome Guest, Not a member yet? Register   Sign In
Autoload model with usage of autoloaded libraries
#4

[eluser]ELRafael[/eluser]
Remmember one thing Stefan:

If you autoload the model, it'll be avaible for all controllers. Even that controllers that won't use the model.

But i can't see an error, sorry.

I my case, i just autoload the session (and anothers) libraries. And i don't use $this->session inside models... i can be wrong, but i believe the function of a model is "talk" to database, not to talk another components.

I don't know the order of auto load, but the logic is load model then load session library, so session is avaible in the model, right?

Derek certainly can give you a better answer. And, for sure, a better writting than mine :-P


Messages In This Thread
Autoload model with usage of autoloaded libraries - by El Forum - 10-29-2007, 08:31 AM
Autoload model with usage of autoloaded libraries - by El Forum - 10-29-2007, 11:00 AM
Autoload model with usage of autoloaded libraries - by El Forum - 10-29-2007, 11:25 AM
Autoload model with usage of autoloaded libraries - by El Forum - 10-29-2007, 01:31 PM
Autoload model with usage of autoloaded libraries - by El Forum - 10-29-2007, 03:05 PM
Autoload model with usage of autoloaded libraries - by El Forum - 10-29-2007, 04:04 PM
Autoload model with usage of autoloaded libraries - by El Forum - 10-29-2007, 04:13 PM
Autoload model with usage of autoloaded libraries - by El Forum - 01-03-2008, 05:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB