Chapter · 9 pages
Response Builders
Pages in this chapter
How do I access the properties of the response builder?
All response builders hold properties that were assigned to them upon creation from the request. ...
PAGE
How do I pass data to a response?
The most common task performed when extending responses, is setting additional data. Typically, f...
PAGE
How do I redirect a response?
Sometimes you may wish to redirect the user to another location, either to an external site or wi...
PAGE
How do I set the response status code?
There may be situations where the HTTP response status needs to be altered. By default, the retur...
PAGE
How do I set response headers?
When extending the response builder, you can set HTTP headers to be sent with the response:
\Aero...
PAGE
How do I attach middlewear to a response builder?
Since Aero does not expose the underlying routes and controllers, middleware can be attached dire...
PAGE
How do I extend responses?
Adding additional code to run on the response is as simple as calling the **extend()**method on t...
PAGE
How do I change the response view?
For responses that return HTML, a Twig view file is used. Whilst these are originally defined, th...
PAGE
What are the available responses from the response builder?
Core
Class
Description
View
Homepage
The homepage of the store.
homepage.twig
ProductPage
The pro...
PAGE