Welcome Guest, Not a member yet? Register   Sign In
Naming conventions for controllers
#1

[eluser]xtremer360[/eluser]
I was looking at this new post on the forum and it got me thinking.

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

What is the best practice when naming functions that are the same across most controllers.

For example lets say I want to name a function that shows all of my users. I would call it list_users(). This function would be responsible for running the get_all function to retrieve all of the users from the database. Another might be the delete_user which would be responsible for running the model function of deleting the specific user. Any ideas on this?



Messages In This Thread
Naming conventions for controllers - by El Forum - 08-03-2013, 09:13 AM
Naming conventions for controllers - by El Forum - 08-04-2013, 09:35 AM
Naming conventions for controllers - by El Forum - 08-04-2013, 09:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB