Welcome Guest, Not a member yet? Register   Sign In
how to use controllers filters on CI4
#1

Hye,

Please, is somebody can explain me with details how to use controllers filters on CI4. With documentation i don't understand how to do ? i understand is necessary to create a class who implements FilterInterface. And after, what i need to do with my controller named for example Ctrl.php ?
If you can give a complete example, it would be very nice.

- if i create a controller in directory controller and if i want to modify the request or the response before or after entering in this controller, how can i do this.
Example : i sent datas from form and before entering on my controller, i would like to check if it's for example the good user who can access to this controller or if his session is ok, etc.

What should I create and where should I place my classes in the architecture with their methods ?

Thank you for your help.
Reply


Messages In This Thread
how to use controllers filters on CI4 - by casa - 01-10-2017, 02:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB