Welcome Guest, Not a member yet? Register   Sign In
Global Array at Application level
#4

[eluser]Phil Sturgeon[/eluser]
Store it in a cache file (serialize() array in a .cache file) and just wipe those files every time the data is changed. If it is data thats subject to frequent change then obviously you wont be able to cache it.

MP_Cache is one library that can do this, but it is rather buggy.

You should then be able to access any of this data via $this->mp_cache->get(), or "extend Controller class" to get it from the text file once and keep it in a $this->data array. Let me know if you need more information


Messages In This Thread
Global Array at Application level - by El Forum - 06-28-2009, 10:33 PM
Global Array at Application level - by El Forum - 06-29-2009, 12:31 AM
Global Array at Application level - by El Forum - 06-29-2009, 01:08 AM
Global Array at Application level - by El Forum - 06-29-2009, 09:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB