[eluser]tmcw[/eluser]
Okay, so working on le CMS... in my public controllers, for each page generated, I've been putting a bit of logic for fetching items from a Page_model, sorting those into a tree, and putting that on a page. I've got it to the point that I at least have that logic in a function within each controller, so I can call it like $data['menu'] = $this->menu('Page_model') and so on.
My question is whether there's a better way to do this... as a helper, plugin, etc? I've been running into the problem that helpers seem to exist outside of the CI object system, so I can't call in a model. Plugins, I think, can, but the manual tells me that they usually have only one associated function. I don't know why.
Any suggestions? It isn't a killer problem, but I figure it's fairly common and I'd like to build this thing the best way I can.
Thanks