Welcome Guest, Not a member yet? Register   Sign In
Output Class in CI4?

(This post was last modified: 09-23-2021, 06:05 AM by objecttothis.)

I'm converting an app from CI3x to CI4x. I see that the Input class is more or less replaced by Request, but I don't see a counterpart for Output.

For example, how would I convert this?

PHP Code:

Nevermind. It's Response for anyone else looking for it.

The equivalents are basically the IncomingRequest class (for input), and the Response class (for output). When returning files, you can use the download features of the Response class

Theme © iAndrew 2016 - Forum software by © MyBB