Response Builders
Response Builders
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. ...
How do I pass data to a response?
The most common task performed when extending responses, is setting additional data. Typically, f...
How do I redirect a response?
Sometimes you may wish to redirect the user to another location, either to an external site or wi...
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...
How do I set response headers?
When extending the response builder, you can set HTTP headers to be sent with the response: \Aero...
How do I attach middlewear to a response builder?
Since Aero does not expose the underlying routes and controllers, middleware can be attached dire...
How do I extend responses?
Adding additional code to run on the response is as simple as calling the **extend()**method on t...
How do I change the response view?
For responses that return HTML, a Twig view file is used. Whilst these are originally defined, th...
What are the available responses from the response builder?
Core Class Description View Homepage The homepage of the store. homepage.twig ProductPage The pro...