I'm Phalcon beginner and i couldnt understand how to trigger custom events.
Example 1: When a user register successfully, trigger "register-user" event
Example 2: When a user update profile, trigger "update-user" event
Example 3: When a user delete, trigger "delete-user" event
Triggers should be trigger on Controllers or Models?
I read many times following document but i couldnt done
Can you give me sample code or idea how to achive this issue?