Welcome Guest, Not a member yet? Register   Sign In
Bug (?) by using ResponseTrait within a filter
#4

(10-15-2022, 04:16 AM)groovebird Wrote: Is it right, that some things, if used in the constructor, not work as expected?

It does not work as expected.
Because the constructor cannot return a Response object.
Controller should return a Response object.

And in a filter, what you do is just return the Response object that you want.
See https://codeigniter4.github.io/CodeIgnit...ponse.html
Reply


Messages In This Thread
RE: Bug by using ResponseTrait within a filter - by kenjis - 10-15-2022, 05:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB