Filter controller without authentication |
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 |
Messages In This Thread |
Filter controller without authentication - by pippuccio76 - 08-25-2020, 02:31 AM
RE: Filter controller without authentication - by InsiteFX - 08-25-2020, 03:42 AM
RE: Filter controller without authentication - by pippuccio76 - 08-25-2020, 07:03 AM
RE: Filter controller without authentication - by InsiteFX - 08-25-2020, 08:13 AM
RE: Filter controller without authentication - by pippuccio76 - 08-26-2020, 09:14 AM
RE: Filter controller without authentication - by InsiteFX - 08-26-2020, 10:09 AM
RE: Filter controller without authentication - by pippuccio76 - 08-26-2020, 10:32 AM
RE: Filter controller without authentication - by Chroma - 08-27-2020, 04:18 AM
RE: Filter controller without authentication - by pippuccio76 - 08-28-2020, 01:42 AM
RE: Filter controller without authentication - by pippuccio76 - 08-28-2020, 03:56 AM
|