Announcement Announcement Module
Collapse
No announcement yet.
Simplifying Controllers with Overlapping Functionality Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Simplifying Controllers with Overlapping Functionality

    Hi,

    I have various Views that utilize similar controller code for various operations (mostly CRUD via business objects), and this could eventually lead to a maintenence nightmare/redundant code. Is it recommended that I centralize this code into a HandlerInterceptor, an abstract Controller class, or something else?

    Thanks,
    Julian

  • #2
    I would probably use normal OO practice and try to pull out a method capturing the common operations into an abstract controller superclass.

    Comment

    Working...
    X