#!/usr/bin/env php show(); return 0; } /** * Return exit code * * @return int */ public function OnExit() { \wxExit(); return 0; } /** * Handle Fatal Exceptions */ public function OnFatalException($e) { file_put_contents('errors.txt', print_r($e, TRUE), FILE_APPEND); } } // Create the app instance $app = new OpenSQLManager(); // Create platform information object $platform = new \wxPlatformInfo(); // Pass fatal exceptions to wxAPP \wxHandleFatalExceptions(TRUE); // Start the wx event loop \wxApp::SetInstance($app); \wxEntry(); // End of OpenSQLManager.php