How should I develop a service consisting of multiple files (component, plugin or module) which will only be executed once as th

I would like to create a service which performs a number of tasks after rendering the view. I should i do this? Do I have to create a module just like "frontend", and hook that into an event? Or should I create a component or plugin which is being executed as the event occurres? I do not exactly how to put this.

What the service should do: each registered module has a configuration for the specific service. As the event occur the service will take all those configurations and process them at once.

If I understand your question correctly, you could gain some inspiration from how the Phalcon Forum does it itself.


If you want to execute something after rendering a view, check this out: