Welcome Guest, Not a member yet? Register   Sign In
Naming Controllers
#1

[eluser]Unknown[/eluser]
Hello.

After reading the User Guide I've a little thing to ask about naming controllers.

What the best practice, name controllers in plural or singular? product.php (class Product {}) or products.php (class Products {})?

Thanks. Wink
#2

[eluser]mjsilva[/eluser]
I guess it's up to you, I use plural for things like users, clients etc... and singular for login, ajax etc...
#3

[eluser]brianw1975[/eluser]
Hi,

Welcome to the forums, I see that this is your first Post so don't take this as me being rude, I simply would like to ask you to please search the forums first before asking a general question of this nature next time. Unlike some forums the search here works quite well.

As for your question: this very same question was asked on Monday.

http://ellislab.com/forums/viewthread/127161/

To sum that thread up: it boils down to your personal coding preferences.




Theme © iAndrew 2016 - Forum software by © MyBB