[eluser]Unknown[/eluser]
I've 2 tables in DB ('colors' and 'sizes'). They've their own controller/model/view to add/maintain records. Each one have ~50 records. Both are expected to grow occasionally.
Almost in every page of my application, I'll require the content of both tables (for filling select boxes). I'd like to have the selects filled accordingly *without* having to acces the DB (loading model, running query, load select boxes from query array), at every page (view) load.
I'd like to load both tables content (automatically ?) loaded to an array (SESSION ? ) (or CI's 'this' super object) using a class (library ? /helper ? ).
Resuming: Needing an auto-loadable script that access both tables, get contents, store them on arrays (or SESSION or '$this'), and holds them available, mostly in any view.
Can someone help me or point me to the right direction on this?
Thanks, best regards