I need to make one db query to populate part of a navigation menu used on every page.
I'd like to not put this in the view file, so currently I have the same 3 lines of code stuck into every controller. I'd like to not have to do this (and not have to remember to do this).
[eluser]Rick Jolly[/eluser]
Yup, that thread outlines 2 good methods of reducing repetition:
1) controller inheritance
2) loading "modules" (view fragments with data) from within the view.