define Events on custom Controllers |
is there a way to use Events only for specific Controllers?
nothing in the documentation: https://codeigniter.com/user_guide/exten...vents.html CI3 had really better User Guide than CI4
In what context are you using it? I mean would the Events be triggered by the controller?
With specific Controller, you can write one or more functions in helper and call any where in your Controller as an trigger.
For app you can use system Events. Learning CI4 from my works, from errors and how to fix bugs in the community Love CI & Thanks CI Teams |
Welcome Guest, Not a member yet? Register Sign In |