CodeIgniter Forums

Full Version: define Events on custom Controllers
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.