• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
define Events on custom Controllers

#1
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
Reply

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

#3
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

Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.