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

Had a brief look at both, and I have to say I struggle to see the benefits of Laravel's *examples*, regardless of the framework.

If you define every possible event in your application, wouldn't that create massive overhead / data in memory to check against for every single page request?

I'd personally try to explicitly handle it via models, both in their example where order status is set to dispatched, or in your case, once user has registered, do these X things.

Feels like events are suppose to be used like hooks, giving you access to certain "framework events", not necessarily you app/business logic?

Am I missing something obvious here?
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