View Full Version : One Controller class per UI functionality?
biguniverse
Jul 22nd, 2005, 10:00 PM
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)?
Rod Johnson
Jul 24th, 2005, 05:02 AM
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.
biguniverse
Jul 25th, 2005, 08:39 PM
Thanks, Rod.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.