This commit is contained in:
Ad Schellevis 2021-06-17 13:41:06 +02:00
parent 0453bdf58c
commit 641929ac12
2 changed files with 2 additions and 4 deletions

View File

@ -56,8 +56,7 @@ try {
* Handle the request
*/
$application = new \Phalcon\Mvc\Application($di);
echo $application->handle()->getContent();
echo $application->handle($_SERVER['REQUEST_URI'])->getContent();
} catch (\Exception $e) {
$response = array();
$response['errorMessage'] = $e->getMessage();

View File

@ -111,8 +111,7 @@ try {
// always flush caches for local testing
(new \OPNsense\Base\Menu\MenuSystem())->invalidateCache();
(new \OPNsense\Core\ACL())->invalidateCache();
echo $application->handle()->getContent();
echo $application->handle($_SERVER['REQUEST_URI'])->getContent();
} catch (\Exception $e) {
echo $e->getMessage();
echo '<pre>' . $e->getTraceAsString() . '</pre>';