Welcome Guest, Not a member yet? Register   Sign In
how can i add multiple except for filters?
#1

Hello,
i have honeypot in filters.php and 'honeypot' => ['except' => 'Api/*'] it works but i have to multiple slugs. Like admin/* , panel/* ..etc how can i do this?
Reply
#2

READ:

CodeIgniter 4 User Guide - Controllers and Routing - Controller Filters - $globals

PHP Code:
public array $globals = [
    'before' => [
        'csrf' => ['except' => ['foo/*''bar/*']],
    ],
        'after' => [],
]; 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB