Welcome Guest, Not a member yet? Register   Sign In
Problem with filters
#1

(This post was last modified: 09-14-2023, 03:05 PM by motoroller.)

Hello everyone, i use few filters in project, one global and one in some routers

In Config/Filters i have global
PHP Code:
public array $globals = [

        'before' => [

            'isLoggedIn' => [

                'except' => [
                    'admin*'
]

]

]; 

public bool $multipleFilters = true;

When i load this: $routes->get('/', [Start::class, 'Index'], [ 'filter' => 'isBlocked' ]);  router my local "isBlocked" filter is working, but my global filter "isLoggedIn" is not execute why? Before is working properly but after update is not(

Then i have added to Filters

PHP Code:
public array $filters = [
        'isBlocked' => ['before' => ['start']]
    ]; 
but filters "isBlocked" is not working as well(
Reply


Messages In This Thread
Problem with filters - by motoroller - 09-14-2023, 02:21 PM
RE: Problem with filters - by sammyskills - 09-14-2023, 11:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB