7 months ago

Controller and Model Names...

Posted 7 months ago by Mikegk

I seriously ran into that question many times: What is the correct and suggested name of a controller and a model? I read several articles where its said that controllers should be written in

-Camel case -Singular

For Example: UserController

The Model also should named that way:

-Camel case (if necessary) -Singular

For Example: User, UserData

Jefrey Way used to name his controllers "ArticlesController" within his screencast.

What is suggested? Or is it a matter of taste? Of course /article/ sounds not good at all if showing multiple entries whereas /articles/ sounds much better and more sensible.

Please sign in or create an account to participate in this conversation.