CodeIgniter Forums
define Events on custom Controllers - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: define Events on custom Controllers (/thread-77596.html)



define Events on custom Controllers - pars1997 - 09-22-2020

is there a way to use Events only for specific Controllers?

nothing in the documentation: https://codeigniter.com/user_guide/extending/events.html

CI3 had really better User Guide than CI4


RE: define Events on custom Controllers - paulbalandan - 09-25-2020

In what context are you using it? I mean would the Events be triggered by the controller?


RE: define Events on custom Controllers - nc03061981 - 09-25-2020

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.