Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Set response headers in Controller Action

In my fooAction how would I go about setting response headers within an action? Current documentation suggests creating a response object and then calling setContent. However, I am using a view to send content and just want to inject some HTTP headers in my response.


never mind, had to access $this->response. Drew a blank there for a moment.