Welcome Guest, Not a member yet? Register   Sign In
CI4 Filter before method throw for page unauthorized
#6

(04-10-2020, 07:04 AM)kilishan Wrote: Returning a response object works as well.

PHP Code:
$response service('response');
$response->setStatusCode(401);

return 
$response

Works like a charm ✨
Awesome thanks for this.
How can I stupidly missed the services

Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
RE: CI4 Filter before method throw for page unauthorized - by 404NotFound - 04-10-2020, 08:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB