Welcome Guest, Not a member yet? Register   Sign In
Filter controller without authentication
#5

i create two filter : usersFiltersAuth and usersFiltersNoAuth

if i use filter in sigle route as:

$routes->get('/login', 'User::login',['filter'=>'usersFiltersNoAuth']);
$routes->get('/registration', 'User::registration',['filter'=>'usersFiltersNoAuth']);
$routes->get('/logout', 'User::logout');


work fine .

How can i  do for an entire controller ?

$routes->group('/user',['filter'=>'usersFiltersAuth'],function($routes){


});


Dont' work and i must except /user/login and /user/registration
Reply


Messages In This Thread
RE: Filter controller without authentication - by pippuccio76 - 08-26-2020, 09:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB