Internals » Routing
Every request to a page on a Bolt website is routed to a Silex controller, regardless of whether the request is for a page in the 'backend', 'frontend' or 'asynchronous'.
There are four files that contain the controller collections, located in
As such, they are all in the
\Bolt\Controllers namespace. They are 'set up'
Backendroutes are all pretty straightforward.
Async.phproutes are used for 'ajaxy' requests, like the 'latest activity' widget on the dashboard.
Routingis the actual Controller that parses the routes found in
Frontendcontains the methods for all standard routes as defined in
You can modify the
routing.yml to suit your own needs. Examples are included.