Currently experimenting with Codeigniter 4 Filter, for an admin section.
On $filters am I able to except a function like this:
public $filters = [
'authenticate' => [
'before' => [
'admin/*',
],
'except' => [
'admin/verify'
],
],
];
So it basically add filter 'authenticate' to every admin controller except the verify one.
Doesn't seem to work.
Also wanted to use arguments on this $filters var like this:
public $filters = [
'authenticate:admin' => [
Which also fail to work.
Am i able to make it work on Routes, but then I need to specify all the controllers functions for the filter to work. Also arguments work on the Routes.
Thanks