Welcome Guest, Not a member yet? Register   Sign In
Leveraging "load->_ci_cached_vars" array in libraries
#3

[eluser]neal789[/eluser]
Thanks for the reply Pascal Kriete.

I don't have a specific code example to give, but for all logged in users on the site I grab a rather large "profile" object at the start of each controller. I want it to be available to me within that request no matter what library or model I'm in. And I want to do it without constantly passing the object around.

The profile object is too large to cookie, so adding it to the session cookie is not an option. I could create a settings library, but I think that the config library might be the way to go. I didn't realize that I could add to that dynamically. I'm afraid I don't understand the term "view scope" so I didn't understand your last comment, but let me know if this shed any more light on what I'm talking about and if you think I'm on the right track.

Thanks


Messages In This Thread
Leveraging "load->_ci_cached_vars" array in libraries - by El Forum - 09-17-2010, 12:44 PM
Leveraging "load->_ci_cached_vars" array in libraries - by El Forum - 09-17-2010, 01:09 PM
Leveraging "load->_ci_cached_vars" array in libraries - by El Forum - 09-17-2010, 02:11 PM
Leveraging "load->_ci_cached_vars" array in libraries - by El Forum - 09-17-2010, 02:53 PM
Leveraging "load->_ci_cached_vars" array in libraries - by El Forum - 09-17-2010, 03:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB