I got a problem with my application, on my dev environment everything works like it should. but on my hosting server, the php is interpreted but it does not show it in the browser, it just downloads a file.
the view is rendered with in slim/twig , when i make a json response instead of returning the view everything is okay.
$apiEndpoints = json_decode(file_get_contents(__DIR__.'/ApiController/endpoints.json'));
return $this->view->render($response, 'index.twig', [
'apiEndpoints' => $apiEndpoints,
]);
the page is this one Application
I have the same environment on this server in another application there is no problem with this, I already downgraded slim/twig.
maybe someone see the problem in http header? I think it looks like it should.