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

How the data flow in xenforo?

Discussion in 'XenForo Development Discussions' started by Anoop, Jun 15, 2013.

  1. Anoop

    Anoop New Member


    I have searched everywhere is xenforo for getting the developer manuel for xenforo but found it is not yet. If we are checking in other mvc or cms we can easily find out which controller or which model is called for that page from the page url itself. So can anybody tell how can i find the same controller and and models and view page from the page url in xenfor0? Can anybody tell me the data flow in xenforo?
  2. tyteen4a03

    tyteen4a03 Well-Known Member

    I'm not sure if I can give a in-depth explanation (or guarantee my explanation makes sense), but it roughly works like this:
    1. URL -> XenForo_Router
    2. XenForo_Router looks at the master route list (available in ACP with debug mode) then looks for the correct routing class
    3. Routing class decides which Controller to use, and calls it
    4. Controller does whatever magic it needs to do. Actions are defined as function actionACTIONNAME, for example account/preferences calls XenForo_ControllerPublic_Account::actionPreferences(). Additional data are passed to the controller via the routing class by injecting special parameters that can be fetched via XenForo_Input::filterSingle();
    Deddy and Anoop like this.
  3. Anoop

    Anoop New Member

    Last edited: Jun 15, 2013

Share This Page