views:

28

answers:

0

I have a question about the best practices of placing certain functions in controllers in an MVC web framework.

Lets say I have a User & Tags controller. I have a function/method called addTag_to_user().

What is the conventions or best practices for placing this in either the Users or Tags controller?

Though personally I am more inclined to place it in the tags controller as my Users controller may be full of other functions as it is a key element (for example). Thus placing it in the Tags controller improves the readability of the User controller.

Edit: Maybe it doesn't really matter where you place functions that deals with two models. I want to see what other people's conventions are.