Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.
Note
titleBe cautious writing events

Executing unstable or badly written code using Events can cause Blesta to terminate unexpectedly during an important process.