You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Events allow code to be notified when certain processes occur. This is useful if you need to execute code based on certain events. To do so, you simply register a callback to the event, and when the event is triggered your callback will automatically be executed.

  • The Hooking into Events section explains how to embed code into Blesta's pre-built event handler.
  • The Creating Events section describes how to register and trigger events using your own custom event handler.

Be cautious writing events

When Blesta triggers an event it must wait for that event to complete before continuing. Executing slow or unstable code could cause Blesta to terminate unexpectedly during an important process.

  • No labels