Welcome Guest, Not a member yet? Register   Sign In
Applying multiple filters on a single route definition
#1

I have tried ti find a solution but failed so far - is it possible to apply multiple filters on a single route? 

I have tried the following with no luck

PHP Code:
$routes->get('/''Dashboard::index', ['filter' => 'auth|second_filter']);
$routes->get('/''Dashboard::index', ['filter' => ['auth''second_filter']]); 

It seems that the parameter only accepts strings and not arrays and having to define each set of possible filters as an alias is not very convenient
Reply


Messages In This Thread
Applying multiple filters on a single route definition - by korgoth - 07-06-2020, 01:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB