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.

Note
titleBe cautious writing events

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