-
Notifications
You must be signed in to change notification settings - Fork 0
Request Flow
dsluis edited this page Mar 26, 2012
·
2 revisions
The following describes how a typical http request is handled.
- 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.
- The Controller will call a common init class or function which will be required for the rest of the request.(ex. autoload)
- Controller will use a dal class to load the required data.
- Controller will call a function in the view folder, passing the model data
- View - The called view function will return the appropriate response(HTML, Json, etc) to the controller.
- End of request flow