Announcement Announcement Module
Collapse
No announcement yet.
One Controller class per UI functionality? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • One Controller class per UI functionality?

    Hello. If I have a CRUD type screen (Add, Edit, Delete), should I have one controller for the entire screen or one controller per button/functionality (i.e. Add, Edit, Delete)?

  • #2
    A matter of taste. You could consider a MultiActionController. Depends how different the responsibilities on the different actions are. Having the one controller perform all of them of course gathers any dependencies--but you could always use a common superclass for this.

    Comment


    • #3
      Thanks, Rod.

      Comment

      Working...
      X