Except in Filters |
Hi There,
I hope you guys are having a fantastic day. I was wondering if there is any way to exclude some URLs from an Authfilter. PHP Code: public $filters = [ have tried this, but it seems not working. (06-06-2022, 10:54 PM)SubrataJ Wrote: Hi There, Thanks, I got the solution I guess instead of setting rules on public $filters, I have done this way and it seems working fine, code is given below PHP Code: public $globals = [ I still wanna know the correct way to do it or if there's any better way to get it done or if there are any possibilities we can do it inside public $filters.
Please read this, but focus on $globals
CodeIgniter User Guide -> Controller Filters What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
$filters does not have `except`. If you use $filters, you must list all URI patterns to be protected.
|
Welcome Guest, Not a member yet? Register Sign In |