[eluser]jedd[/eluser]
[quote author="deco10" date="1250551135"]
I need to do some processing for my menu on every page of my site.
It seems silly to call a function in every function in the controller. The process will likely involve a data base call.
[/quote]
There's lots of threads that cover this in the forums already - check out these two: [url="http://ellislab.com/forums/viewthread/109698/"]Code duplication advice[/url] and [url="http://ellislab.com/forums/viewthread/110969/"]Finding it hard to start[/url]
Also read up on [url="http://ellislab.com/codeigniter/user-guide/general/core_classes.html"]Extending the Core Controller in the CI User Guide[/url].