I'd like to use fastcgi_finish_request() (link) to return content to a user but do some additional work befor the script finishes. Is there a way to do it in Phalcon and how?
If you want to do extra jobs after sending the output the better place would be after echoing the response:
// process extra work here
Thanks for response.
Can you tell me what is actually happening in the framework afer I echo a string in my controller? Is it documented somewhere?
The framework has finished its execution, with the output transfered to the CGI you can perform aditional tasks after that.