Welcome Guest, Not a member yet? Register   Sign In
i want exclude debug infomation when output csv
#5

In fact, CI4 does not support stream output except in case of downloading an existing file.
See https://codeigniter4.github.io/CodeIgnit...e-download

Even if you want to output stream in your controller, all output will be buffered and sent by the framework.

If you need to disable the output buffering, put the following code before your stream output.

PHP Code:
while (ob_get_level() > 0) {
    ob_end_clean();

Reply


Messages In This Thread
RE: i want exclude debug infomation when output csv - by kenjis - 07-24-2022, 05:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB