Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter4 - Event listner
#4

No, I am not asking to define every possible event but only to help handle business logic.

I suppose despatching events can be useful to separate code e.g. a learner access their training, completes, and on successful completion receives pdf certficate by email. I can achieve all these through cron jobs by querying the database (select all records which have completion date today and looop through to send certficates out) or I suppose I could have listeners listening to specific events which do their job as dedicated piece of codes. I am just wondering if that's better way than having all my code in one file and using series of if/else.
Reply


Messages In This Thread
CodeIgniter4 - Event listner - by happyape - 09-19-2018, 03:21 AM
RE: CodeIgniter4 - Event listner - by Pertti - 09-19-2018, 03:58 AM
RE: CodeIgniter4 - Event listner - by kilishan - 09-19-2018, 05:38 AM
RE: CodeIgniter4 - Event listner - by happyape - 09-19-2018, 05:48 AM
RE: CodeIgniter4 - Event listner - by Pertti - 09-19-2018, 06:01 AM
RE: CodeIgniter4 - Event listner - by Pertti - 09-19-2018, 05:54 AM
RE: CodeIgniter4 - Event listner - by happyape - 09-19-2018, 06:03 AM
RE: CodeIgniter4 - Event listner - by Pertti - 09-19-2018, 06:40 AM
RE: CodeIgniter4 - Event listner - by unodepiera - 09-29-2018, 11:47 AM
RE: CodeIgniter4 - Event listner - by happyape - 09-29-2018, 12:38 PM
RE: CodeIgniter4 - Event listner - by unodepiera - 09-29-2018, 11:29 PM
RE: CodeIgniter4 - Event listner - by abrkof - 01-04-2020, 10:31 AM
RE: CodeIgniter4 - Event listner - by InsiteFX - 01-05-2020, 09:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB