Welcome Guest, Not a member yet? Register   Sign In
Issue with the controller arguement
#2

It's still pretty straight forward. Instead of being passed in through the constructor it's passed in through the initController() method, which is identical to what the constructor used to be. So, $this->response still works, unless you're in the constructor.

Besides that, the response and request objects are shared instances through the Services class so the current one can always be retrieved with $request = Config\Services::request();.
Reply


Messages In This Thread
Issue with the controller arguement - by scalla - 07-10-2018, 05:42 PM
RE: Issue with the controller arguement - by kilishan - 07-10-2018, 08:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB