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

(10-14-2022, 04:51 PM)kenjis Wrote: ResponseTrait is not intended to use with filters.
It is for controllers.

Ok, thank you.
I want to check globally in my controller if access is allowed or not. Thats why i tried at first to use the Response Trait in the constructor of my controller but this is not working.

Is it right, that some things, if used in the constructor, not work as expected? The Response Trait is one thing and the setHeader method does not set the header if i use it in the constructor.
Reply


Messages In This Thread
RE: Bug by using ResponseTrait within a filter - by groovebird - 10-15-2022, 04:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB