Does anyone have an barebones example for extending the HTTP/Response with services container?

I want to extend the HTTP/Response to add some custom methods regarding named paths. I'm not sure how exactly to setup the optional parameters through the DI service.



44.7k

Is it correct to say that the built-in Phalcon "response" service doesn't pass anything into the constructor?



1.4k

you can use response this way

return new Response("Hi there");



44.7k

I understand basic usage. I'm trying to extend it with a redirectStdAction method that understands fully module-spaced controller actions with a basic name like signin, changePassword.