• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

More elegant: fetch user in controller or at database layer?

I fetch the user

  • in the controller

    Votes: 0 0.0%
  • at the database layer

    Votes: 2 100.0%

  • Total voters
    2

Marcus

Well-known member
#1
I prefer to do it within the model that keeps the controller cleaner. What do you prefer? And what is the general guideline for this?