What is the best approach to implementing a component that responds to events?

by glenatron   Last Updated June 26, 2019 16:10 PM - source

I am working on a Component that will add a set of administrative functionality, which I am fairly confident in, but part of its behaviour will rely on code being triggered by events, which seems to be very much the role of a Plug-In.

What is the correct way to structure this if I want the whole lot to be easy to install and maintain? Is there a way to implement Plugin-like Observers in my Component or should I be building a separate Component and Plugin and then chaining the installers somehow? In the latter case how should I manage the code that they both share and ensure that if one is installed the other is too?



Related Questions


Extension to create a custom configuration file

Updated February 20, 2016 01:04 AM




onUserAfterLogin popup - Joomla 3.6.4 Plugin

Updated March 08, 2018 11:10 AM