• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controllers...plural or singular?

#1
[eluser]jleequeen[/eluser]
Hi Everyone,

I know this is probably pretty individual, but is there a good rule of thumb when deciding whether to use plural or singular controller names? I've seen it done both ways. I don't really have an issue with naming my models and views. To me, a model should be singular, and views well, they are obviously singular based upon the action. I've always struggled with controllers though. I've read that since controllers tend to be "resources" within your application or a collection of objects, that they should be plural. But then I see examples where that isn't the case (ie. blog controller anyone?). Any thoughts on the subject?


Messages In This Thread
Controllers...plural or singular? - by El Forum - 08-24-2009, 08:53 AM
Controllers...plural or singular? - by El Forum - 08-24-2009, 09:21 AM
Controllers...plural or singular? - by El Forum - 08-24-2009, 10:11 AM
Controllers...plural or singular? - by El Forum - 08-24-2009, 11:58 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.