Skip to content

Request Flow

dsluis edited this page Mar 26, 2012 · 2 revisions

The following describes how a typical http request is handled.

  1. Controller - Currently all app urls(html links, ajax) point to a php file in the controller folder. For this reason the web_root for this project should point to the controller folder. This controller folder could have an 'api' sub-dir. for rest type requests.
  2. The Controller will call a common init class or function which will be required for the rest of the request.(ex. autoload)
  3. Controller will use a dal class to load the required data.
  4. Controller will call a function in the view folder, passing the model data
  5. View - The called view function will return the appropriate response(HTML, Json, etc) to the controller.
  6. End of request flow

Clone this wiki locally