Reputation: 16445
For starters let me say that I know that the name of the controller should ends with Controller
to fit nicely into the framework. But I would like to know what do you usually put before the Controller part?
For example, in unit tests it is quite straightforward, before Test
you put the name of the class which you want to test. So in Symfony2 I should put the name of the entity which is the central object of interest in this controller? Maybe there are different approaches? I am interested in your experience, do you stumble across some pros or cons while taking one or other path? Or maybe "it doesn't matter"?
Upvotes: 0
Views: 1422
Reputation: 3726
You can name your controller as you wish, and there is no real convention about that.
Upvotes: 3