"You have some information in a DB that you want to read from a controller. Then you generate some code with this and give it to the view. Here is no problem except when you have 2 other controllers that need the same generated code (just to avoid the code duplication, ok?)."
Based on the above example I would say that you need to create an action helper. This helper could then be reused in your other controllers.
|