PHP_Framework

Wh1t3projects' PHP framework. Small PHP framework for building web apps and websites

View the Project on GitHub

Syntax: kernel_event_create (string $eventName)

Create an event. This actually just create an empty array in the $EVENTS array if it doesn’t already exist.


Parameters

eventName
The name of the event to create


Return values

TRUE if successful. FALSE if an error occurred or if the event already exist.


Examples:

Create MYCUSTOMEVENT event
kernel_event_create('MYCUSTOMEVENT')