I am using slimframwork 3 application for laradock (nginx, mariadb, phpfpm, php 5.6), so I made a silly syntax error:
$view->addExtension(new \Slim\Views\TwigExtension(
$container->router,
$container->request->getUri(),
));
the comma after getUri () gave me a 500 error on chrome, and that was a disappointment, so I tried my wamp application on windows, and I get:
Parse error: syntax error, unexpected ')' in C: \ wamp64 \ www \ app \ bootstrap \ app.php on line 21
why I had a 500 error, not having a clue about what was wrong.
PS I set displayErrorDetails to true
source
share