Use Events and Hooks

Phalcon provides event-driven architecture (Phalcon\Events\Manager) where you can attach listeners and hooks to various stages of request processing (beforeAction, afterRender, etc.). Use these to implement cross-cutting concerns and extend framework functionality.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *