Welcome Guest, Not a member yet? Register   Sign In
How to access request in ResourcePresenter?

(11-24-2022, 05:42 AM)kenjis Wrote: $this->request

good point, $this->request does exist but I can't call $this->request->getPost() on it, whereas I can when a controller extends BaseController.

In a ResourcePresenter $this->request is of type CodeIgniter\HTTP\RequestInterface.
In a controller extending BaseController $this->request is type CodeIgniter\HTTP\IncomingRequest.

So what's the recommended way of getting a request of type CodeIgniter\HTTP\IncomingRequest into a ResourcePresenter?

Messages In This Thread
RE: How to access request in ResourcePresenter? - by rich8374 - 11-24-2022, 05:53 AM

Theme © iAndrew 2016 - Forum software by © MyBB