include_once 'mycallbacks.php'; // the callbacks that are gonna be used to handle the events
$handler = cjEventHandler::singleton();
* Only use this if you are sure that all callbacks that are defined can be called in this script.
* So you need to make sure everything is set up before doing a call to handle()
* Best practice would be to collect all your callback-classes and functions in an include-file and instantiate all the objects
* that serve as callbacks in that file too. This way you can include that file in all the places where you handle PHP-events
// Now send all the js-events from PHP to the frontend