[eluser]Unknown[/eluser]
I have some code that queries a database to collect and set up the hierarchy for site navigation, but I'm having trouble figuring out where I should put, and what form it should be in (model, library, helper, etc).
I figured a view or a controller would be inappropriate for it, since it should be available anywhere from the entire site, and a model might work even though those aren't supposed to output html directly, but my concepts for libraries and helpers are a bit more nebulous and I'm just not sure how this relatively minor function fits in.
Is it common (or rather, good) practice to set up a model similar to a registry that gets auto-loaded, in order to store variables and functions that're needed across the site?
Lastly, let's say I autoload sessions, database, and a few other models. Is there any way, in a controller, to override that list and choose to rebuild that list for that specific controller?
Thanks in advance!