1. 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?

Discussion in 'XenForo Development Discussions' started by Marcus, Oct 14, 2012.


I fetch the user

  1. in the controller

    0 vote(s)
  2. at the database layer

    2 vote(s)
  1. Marcus

    Marcus Well-Known Member

    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?
  2. Jeremy P

    Jeremy P Well-Known Member

    Hmm? You use the controller to fetch the user from the user model.

Share This Page