-
Notifications
You must be signed in to change notification settings - Fork 1
HTTP routing
Andrea Mecchia edited this page Jan 26, 2018
·
8 revisions
When a visitor make a request on your website the request is passed to a router that possibly handles the request and sends back a response to the client. This process consists of this steps:
- incoming requests is forwarded to
public/index.php
- the
bootstrap.php
script is loaded and routers defined inconfig/*
files are registered - each router tries to handle the request. A request is matched if a route with the correct method is defined.
- If a request is matched, the response is parsed
- Otherwise in no router is able to handle the request the error script (if defined) of the matching router is executed or a generic 404 error is sent to the client